diff --git a/plugins/module_utils/api.py b/plugins/module_utils/api.py index f78c5ce..272cd2a 100644 --- a/plugins/module_utils/api.py +++ b/plugins/module_utils/api.py @@ -705,7 +705,7 @@ def compare_objects(self, current_object, proposed_object): return False for subitem in proposed_item: - if current_item: + if key == 'ipv4addrs' and current_item: # Host IPv4addrs wont contain use_nextserver and nextserver # If DHCP is false. dhcp_flag = current_item[0].get('configure_for_dhcp', False)