Skip to content

Commit

Permalink
fix: ensure path is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
stmosher committed Jul 21, 2023
1 parent a5912d8 commit ebf0c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/mdd_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ def find_paths(d, path=[], list_key_map=None):
def _find_paths(d, path=[]):
if isinstance(d, dict):
for k, v in d.items():
merge_key = get_merge_key(":".join(path), list_key_map)
merge_key = get_merge_key(":".join(str(path)), list_key_map)
if merge_key:
special_paths.append(("/:/".join(path), len(path)))
special_paths.append(("/:/".join(str(path)), len(path)))
_find_paths(v, path + [str(k)])

_find_paths(d)
Expand Down

0 comments on commit ebf0c42

Please sign in to comment.