Skip to content

Commit 0b01684

Browse files
committed
module_utils/proxmox: updated compare_list_of_dict()
1 parent 74b3d44 commit 0b01684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/module_utils/proxmox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def compare_list_of_dicts(existing_list, new_list, uid, params_to_ignore=None):
9090
if params_to_ignore is None:
9191
params_to_ignore = list()
9292
items_to_update = []
93-
new_list = [{k: v for k, v in item.items() if v is not None} for item in new_list]
93+
new_list = [{k: v for k, v in item.items() if v is not None and k not in params_to_ignore} for item in new_list]
9494

9595
if existing_list is None:
9696
items_to_create = new_list

0 commit comments

Comments
 (0)