From 70ca43a5e160011d9f375d8bc05828aae76517c9 Mon Sep 17 00:00:00 2001 From: kaikash Date: Sun, 4 Aug 2024 17:03:55 +0300 Subject: [PATCH] Proper check for update_config --- plugins/modules/proxmox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/modules/proxmox.py b/plugins/modules/proxmox.py index 775f1a6b52..404a7e60ff 100644 --- a/plugins/modules/proxmox.py +++ b/plugins/modules/proxmox.py @@ -818,6 +818,10 @@ class ProxmoxLxcAnsible(ProxmoxAnsible): if new_value not in current_values: update_config = True break + # Check if current values have more elements than requested values + if len(current_values) != len(requested_values): + update_config = True + # if it's not a list (or string) just compare the current value else: # some types don't match with the API, so forcing to string for comparison