Skip to content

Commit

Permalink
Fix duplicate detection issue: merge_list_item produced incorrect dat…
Browse files Browse the repository at this point in the history
…a by failing to retain duplicate elements after merging
  • Loading branch information
kuba-mazurkiewicz committed Dec 2, 2024
1 parent 8b46066 commit aacfead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iac_validate/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def merge_dict(
merge_dict(value, node, merge_list_items)
elif isinstance(value, list):
if key not in destination:
destination[key] = []
destination[key] = value[:]
if isinstance(destination[key], list):
for i in value:
merge_list_item(i, destination[key], merge_list_items)
Expand Down

0 comments on commit aacfead

Please sign in to comment.