From 655f39713cca2595a812ccd60cc738301aef8b2f Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Mon, 23 Apr 2018 08:49:34 -0700 Subject: [VVP] add bug fixes and reserve port updates Adding test script updates and reserve port Change-Id: I2af5263a48a53117021f166d08395685e89fd122 Issue-ID: VVP-56 Signed-off-by: stark, steven --- ice_validator/tests/utils/nested_iterables.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ice_validator/tests/utils/nested_iterables.py') diff --git a/ice_validator/tests/utils/nested_iterables.py b/ice_validator/tests/utils/nested_iterables.py index 19290c0..eea6e19 100644 --- a/ice_validator/tests/utils/nested_iterables.py +++ b/ice_validator/tests/utils/nested_iterables.py @@ -73,11 +73,13 @@ def find_all_get_param_in_yml(yml): params = [] for k, v in yml.items(): if k == 'get_param' and v not in os_pseudo_parameters: + if isinstance(v, list) and not isinstance(v[0], dict): + params.append(v[0]) + elif not isinstance(v, dict) and isinstance(v, str): + params.append(v) for item in (v if isinstance(v, list) else [v]): if isinstance(item, dict): params.extend(find_all_get_param_in_yml(item)) - elif isinstance(item, str): - params.append(item) continue elif k == 'list_join': for item in (v if isinstance(v, list) else [v]): -- cgit 1.2.3-korg