aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/helpers.py
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2019-07-24 13:34:59 -0500
committerLovett, Trevor (tl2972) <tl2972@att.com>2019-07-24 13:35:11 -0500
commit9e39bf74ce93945b322c554349e85afca3a79852 (patch)
treeb7a01323c99e07f6c196ccf0eee6fc62e422e5c4 /ice_validator/tests/helpers.py
parent3140095996787a4bd322a9c0448e590a918f7093 (diff)
[VVP] Fixed issue in unused parameter detection
Issue-ID: VVP-247 Change-Id: I02e2da52fdfa31a1d056b9839063373453c8ace7 Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'ice_validator/tests/helpers.py')
-rw-r--r--ice_validator/tests/helpers.py2
1 files changed, 1 insertions, 1 deletions
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)