mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
proxmox inventory: remove duplicated credentials line (#8917)
* proxmox inventory: remove duplicated credentials line * fixup! proxmox inventory: remove duplicated credentials line * fixup! proxmox inventory: remove duplicated credentials line
This commit is contained in:
parent
199ba0a170
commit
89ad40db41
2 changed files with 3 additions and 2 deletions
2
changelogs/fragments/8917-proxmox-clean-auth.yml
Normal file
2
changelogs/fragments/8917-proxmox-clean-auth.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- proxmox inventory plugin - clean up authentication code (https://github.com/ansible-collections/community.general/pull/8917).
|
|
@ -275,11 +275,10 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||||
return self.session
|
return self.session
|
||||||
|
|
||||||
def _get_auth(self):
|
def _get_auth(self):
|
||||||
credentials = urlencode({'username': self.proxmox_user, 'password': self.proxmox_password, })
|
|
||||||
|
|
||||||
if self.proxmox_password:
|
if self.proxmox_password:
|
||||||
|
|
||||||
credentials = urlencode({'username': self.proxmox_user, 'password': self.proxmox_password, })
|
credentials = urlencode({'username': self.proxmox_user, 'password': self.proxmox_password})
|
||||||
|
|
||||||
a = self._get_session()
|
a = self._get_session()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue