From 5c00c5b3a5174d7d82960fe4a82f0f640845867b Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 2 Aug 2025 18:02:39 +0200 Subject: [PATCH] [stable-9] [stable-10] Backport fixes from community.proxmox (#10553) (#10564) [stable-10] Backport fixes from community.proxmox (#10553) * Import paramiko directly. https://github.com/ansible-collections/community.proxmox/commit/8f90ab075cd6c8ee10be8dac3866add498656799 * Remove deprecated disable_lookups parameter. https://github.com/ansible-collections/community.proxmox/commit/c0fc31241b1aa5754989c22ad82e829aa6a23ce0 (cherry picked from commit 4c7f64b1211729004923f14bca0a2206c93d432f) --- changelogs/fragments/108--disable_lookups.yml | 2 ++ plugins/inventory/proxmox.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/108--disable_lookups.yml diff --git a/changelogs/fragments/108--disable_lookups.yml b/changelogs/fragments/108--disable_lookups.yml new file mode 100644 index 0000000000..79739bdcf2 --- /dev/null +++ b/changelogs/fragments/108--disable_lookups.yml @@ -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)." diff --git a/plugins/inventory/proxmox.py b/plugins/inventory/proxmox.py index 975c344aef..817017bc4a 100644 --- a/plugins/inventory/proxmox.py +++ b/plugins/inventory/proxmox.py @@ -682,7 +682,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): for o in ('url', 'user', 'password', 'token_id', 'token_secret'): v = self.get_option(o) 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) # some more cleanup and validation