Skip to content

Commit

Permalink
[FIX] NPA-77, Network container update operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
JkhatriInfobox committed Jul 15, 2024
1 parent 2f75ead commit 2fed5d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/module_utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2fed5d6

Please sign in to comment.