mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix typo disable_looups in inventory/proxmox (#5640)
* fix typo disable_looups in inventory/proxmox - resolve issue with lookups in proxmox inventory config * add changelog fragment * Update changelogs/fragments/5640-fix-typo-proxmox-inventory.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
da7cba4c12
commit
fd436bdbc2
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/5640-fix-typo-proxmox-inventory.yml
Normal file
2
changelogs/fragments/5640-fix-typo-proxmox-inventory.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- "proxmox inventory plugin - fix bug while templating when using templates for the ``url``, ``user``, ``password``, ``token_id``, or ``token_secret`` options (https://github.com/ansible-collections/community.general/pull/5640)."
|
|
@ -615,7 +615,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_looups=False)
|
v = self.templar.template(v, disable_lookups=False)
|
||||||
setattr(self, 'proxmox_%s' % o, v)
|
setattr(self, 'proxmox_%s' % o, v)
|
||||||
|
|
||||||
# some more cleanup and validation
|
# some more cleanup and validation
|
||||||
|
|
Loading…
Reference in a new issue