mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
[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>
This commit is contained in:
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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user