mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 13:14:24 -07:00
[stable-10] Backport fixes from community.proxmox (#10553) * Import paramiko directly.8f90ab075c
* Remove deprecated disable_lookups parameter.c0fc31241b
(cherry picked from commit4c7f64b121
)
This commit is contained in:
parent
f7f5c7f913
commit
5c00c5b3a5
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/108--disable_lookups.yml
Normal file
2
changelogs/fragments/108--disable_lookups.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- "proxmox inventory plugin - avoid using deprecated option when templating options (https://github.com/ansible-collections/community.proxmox/pull/108, https://github.com/ansible-collections/community.general/pull/10553)."
|
|
@ -682,7 +682,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||||
for o in ('url', 'user', 'password', 'token_id', 'token_secret'):
|
for o in ('url', 'user', 'password', 'token_id', 'token_secret'):
|
||||||
v = self.get_option(o)
|
v = self.get_option(o)
|
||||||
if self.templar.is_template(v):
|
if self.templar.is_template(v):
|
||||||
v = self.templar.template(v, disable_lookups=False)
|
v = self.templar.template(v)
|
||||||
setattr(self, 'proxmox_%s' % o, v)
|
setattr(self, 'proxmox_%s' % o, v)
|
||||||
|
|
||||||
# some more cleanup and validation
|
# some more cleanup and validation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue