Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion plugins/modules/nsxt_uplink_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ def check_for_update(module, manager_url, mgr_username, mgr_password, validate_c
both_lags_same = True
for i in range(len(sorted_existing_lags)):
diff_obj = {k: sorted_existing_lags[i][k] for k in sorted_existing_lags[i] if k in sorted_new_lags[i] and sorted_existing_lags[i][k] != sorted_new_lags[i][k]}
del diff_obj['uplinks']
uplinks = diff_obj.get('uplinks', None)
if uplinks:
del diff_obj['uplinks']
if not cmp_dict(diff_obj, sorted_new_lags[i]):
both_lags_same = False
if not both_lags_same:
Expand Down