Skip to content

Commit

Permalink
fix: vmware#490 - nsxt_uplink_profiles check for uplinks key when dif…
Browse files Browse the repository at this point in the history
…fing uplink profile

Signed-off-by: Julian Dannenberg <[email protected]>
  • Loading branch information
jdannenberg committed Feb 27, 2024
1 parent dfbbd04 commit c003a8f
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit c003a8f

Please sign in to comment.