[PR #8917/89ad40db backport][stable-9] proxmox inventory: remove duplicated credentials line (#8919)
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
(cherry picked from commit 89ad40db41
)
Co-authored-by: Per Fide <perfide@users.noreply.github.com>
pull/8924/head
parent
ad1cf82a34
commit
f3aca8a575
|
@ -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…
Reference in New Issue