diff options
author | Bozawglanian, Hagop (hb755d) <hb755d@att.com> | 2018-07-31 20:44:18 +0000 |
---|---|---|
committer | Bozawglanian, Hagop (hb755d) <hb755d@att.com> | 2018-07-31 23:19:25 +0000 |
commit | 06511c3ae3ed91250586d4b1c14130d83eaa64c8 (patch) | |
tree | 4f45aad21db26dcae58ea795f7d1f5d75e52faf0 /ice_validator/tests/helpers.py | |
parent | 20b8e673c02ed57cc2393b81bbdda3904ed91da5 (diff) |
[VVP] Updating error reporting for helpers
Change-Id: Ib93b6ff452613b2ee1f2804d958f4c6f66d6dee4
Issue-ID: VVP-80
Signed-off-by: Bozawglanian, Hagop (hb755d) <hb755d@att.com>
Diffstat (limited to 'ice_validator/tests/helpers.py')
-rwxr-xr-x[-rw-r--r--] | ice_validator/tests/helpers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ice_validator/tests/helpers.py b/ice_validator/tests/helpers.py index 82d0201..37fd01f 100644..100755 --- a/ice_validator/tests/helpers.py +++ b/ice_validator/tests/helpers.py @@ -55,10 +55,11 @@ def check_basename_ending(template_type, basename): return not basename.endswith('_volume') -def get_parsed_yml_for_yaml_files(yaml_files, sections=[]): +def get_parsed_yml_for_yaml_files(yaml_files, sections=None): ''' get the parsed yaml for a list of yaml files ''' + sections = [] if sections is None else sections parsed_yml_list = [] for yaml_file in yaml_files: yml = '' @@ -67,8 +68,8 @@ def get_parsed_yml_for_yaml_files(yaml_files, sections=[]): with open(yaml_file) as fh: yml = yaml.load(fh) except Exception as e: - print(e) - + print('Error in %s: %s' % (yaml_file, e)) + continue if yml: if sections: for k in yml.keys(): |