From 73b66472d38b400c4b548acb3cd5f6281b752d1d Mon Sep 17 00:00:00 2001 From: stahnjones <129926630+stahnjones@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:29:15 -0400 Subject: [PATCH] Update ntnx_acps.py Adding missing check for new context list items, not just removing extra old ones --- plugins/modules/ntnx_acps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/modules/ntnx_acps.py b/plugins/modules/ntnx_acps.py index 04f1f1f56..093a44d04 100644 --- a/plugins/modules/ntnx_acps.py +++ b/plugins/modules/ntnx_acps.py @@ -421,6 +421,10 @@ def check_acp_idempotency(old_spec, update_spec): if context not in update_context_list: return False + for context in update_context_list: + if context not in old_context_list: + return False + return True