Skip to content

Commit

Permalink
Ignore none values when diffing nested dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Feb 11, 2025
1 parent d75d2aa commit b8165bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/module_utils/linode_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ def handle_updates(

old_value = parse_linode_types(getattr(obj, key))

if isinstance(new_value, dict):
# If this field is a dict, we only want to compare values that are
# specified by the user
old_value, new_value = dict_select_matching(old_value, new_value)

has_diff = new_value != old_value

# We should convert properties to sets
Expand Down

0 comments on commit b8165bf

Please sign in to comment.