Skip to content

Commit

Permalink
[FIX] added check for list element match. (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
JchhatbarInfoblox authored Jul 12, 2024
1 parent 3f5025e commit e23c87c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/module_utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,10 @@ def compare_objects(self, current_object, proposed_object):
if not self.issubset(subitem, current_item):
return False

# If the lists are of a different length the objects and order of element mismatch
if proposed_item != current_item:
return False

elif isinstance(proposed_item, dict):
# Compare the items of the dict to see if they are equal. A
# difference stops the comparison and returns false. If they
Expand Down

0 comments on commit e23c87c

Please sign in to comment.