X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=ice_validator%2Ftests%2Fhelpers.py;h=6a6fb732bee14c5328a8d231affe825ac458de6a;hp=fd78c7581fc9227f9e9ef4a6569f1c0c6cfa1303;hb=9e39bf74ce93945b322c554349e85afca3a79852;hpb=3140095996787a4bd322a9c0448e590a918f7093 diff --git a/ice_validator/tests/helpers.py b/ice_validator/tests/helpers.py index fd78c75..6a6fb73 100644 --- a/ice_validator/tests/helpers.py +++ b/ice_validator/tests/helpers.py @@ -218,7 +218,7 @@ def traverse(data, search_key, func, path=None): elif isinstance(data, list): for value in data: curr_path = path + [value] - if isinstance(value, dict): + if isinstance(value, (dict, list)): traverse(value, search_key, func, curr_path) elif value == search_key: func(curr_path, value)