mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-10 20:50:32 -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
|
||||
|
||||
def _get_auth(self):
|
||||
credentials = urlencode({'username': self.proxmox_user, 'password': 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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue