From d0dd285ac1fee95d306800d29d5f334eacaa769c Mon Sep 17 00:00:00 2001 From: Jeenitkumar Khatri <58591067+JkhatriInfobox@users.noreply.github.com> Date: Tue, 16 Jul 2024 10:04:27 +0530 Subject: [PATCH] [FIX] NPA-77, Network container update operation. (#241) --- plugins/module_utils/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/module_utils/api.py b/plugins/module_utils/api.py index d4d99f75..d2ad8dfa 100644 --- a/plugins/module_utils/api.py +++ b/plugins/module_utils/api.py @@ -490,6 +490,8 @@ def run(self, ib_obj_type, ib_spec): result['changed'] = True elif 'network_view' in proposed_object and (ib_obj_type not in (NIOS_IPV4_FIXED_ADDRESS, NIOS_IPV6_FIXED_ADDRESS, NIOS_RANGE)): proposed_object.pop('network_view') + if ib_obj_type in (NIOS_IPV4_NETWORK_CONTAINER, NIOS_IPV6_NETWORK_CONTAINER): + proposed_object.pop('network') result['changed'] = True if not self.module.check_mode and res is None: proposed_object = self.on_update(proposed_object, ib_spec)