X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=ice_validator%2Ftests%2Futils%2Fvolumes.py;h=7cdd147371f95fb7966a8132907bfab12c2e0d4b;hp=03ac611f527ac6a5f6f99a474f1820d7999e5949;hb=06511c3ae3ed91250586d4b1c14130d83eaa64c8;hpb=20b8e673c02ed57cc2393b81bbdda3904ed91da5 diff --git a/ice_validator/tests/utils/volumes.py b/ice_validator/tests/utils/volumes.py old mode 100644 new mode 100755 index 03ac611..7cdd147 --- a/ice_validator/tests/utils/volumes.py +++ b/ice_validator/tests/utils/volumes.py @@ -38,8 +38,10 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -import yaml from os import path +import yaml + +VERSION = '1.0.0' def get_volume_resources(heat_template): @@ -60,8 +62,8 @@ def get_volume_resources(heat_template): try: with open(volume_template) as fh: yml = yaml.load(fh) - except Exception as e: - print(e) + except yaml.YAMLError as e: + print(e) # pylint: disable=superfluous-parens return {} if 'outputs' not in yml: