Skip to content

Commit 2b7206d

Browse files
fix: type handling didn't traverse+set
1 parent 7d0fa05 commit 2b7206d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

yamldifftool.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ def traverse_and_set(user_provided, root_diff, path):
1616
def filter_defaults(base, user_provided, root_diff, path=[], strict=False):
1717
if type(user_provided) is dict:
1818
for key in user_provided.keys():
19-
if base is None:
20-
continue
21-
if type(base) is str:
19+
if base is None or type(base) is str:
20+
traverse_and_set(user_provided.get(key), root_diff, path + [key])
2221
continue
2322
if not strict and key not in base.keys():
2423
traverse_and_set(user_provided.get(key), root_diff, path + [key])

0 commit comments

Comments
 (0)