diff --git a/plugins/module_utils/api.py b/plugins/module_utils/api.py index d2ad8dfa..46af207e 100644 --- a/plugins/module_utils/api.py +++ b/plugins/module_utils/api.py @@ -655,7 +655,8 @@ def compare_objects(self, current_object, proposed_object): return False # If the lists are of a different length the objects and order of element mismatch - if proposed_item != current_item: + # Ignore DHCP options while comparing due to extra num param is get response + if key != 'options' and proposed_item != current_item: return False elif isinstance(proposed_item, dict): diff --git a/plugins/modules/nios_network.py b/plugins/modules/nios_network.py index ee3b9349..e2505966 100644 --- a/plugins/modules/nios_network.py +++ b/plugins/modules/nios_network.py @@ -315,7 +315,6 @@ def check_ip_addr_type(obj_filter, ib_spec): if 'container' in obj_filter and obj_filter['container']: check_ip = ip.split('/') del ib_spec['container'] # removing the container key from post arguments - del ib_spec['options'] # removing option argument as for network container it's not supported if validate_ip_address(check_ip[0]): return NIOS_IPV4_NETWORK_CONTAINER, ib_spec elif validate_ip_v6_address(check_ip[0]):