Skip to content

Commit

Permalink
fix: type handling didn't traverse+set
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesimpson36 committed Nov 2, 2024
1 parent 7d0fa05 commit 2b7206d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yamldifftool.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ def traverse_and_set(user_provided, root_diff, path):
def filter_defaults(base, user_provided, root_diff, path=[], strict=False):
if type(user_provided) is dict:
for key in user_provided.keys():
if base is None:
continue
if type(base) is str:
if base is None or type(base) is str:
traverse_and_set(user_provided.get(key), root_diff, path + [key])
continue
if not strict and key not in base.keys():
traverse_and_set(user_provided.get(key), root_diff, path + [key])
Expand Down

0 comments on commit 2b7206d

Please sign in to comment.