Skip to content

Commit

Permalink
update merge script
Browse files Browse the repository at this point in the history
  • Loading branch information
flashguerdon committed Jan 22, 2024
1 parent 920ecec commit 8424e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/fence/scripts/yaml_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def merge_yaml_files(file_paths):
return merged_data

def merge_dicts(dict1, dict2):
if dict2 is not None:
if dict2 is not None: #Fix AttributeError
for key, value in dict2.items():
if key in dict1 and isinstance(dict1[key], dict) and isinstance(value, dict):
dict1[key] = merge_dicts(dict1[key], value)
Expand Down

0 comments on commit 8424e39

Please sign in to comment.