aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/utils
diff options
context:
space:
mode:
authorBozawglanian, Hagop (hb755d) <hb755d@att.com>2018-07-31 20:44:18 +0000
committerBozawglanian, Hagop (hb755d) <hb755d@att.com>2018-07-31 23:19:25 +0000
commit06511c3ae3ed91250586d4b1c14130d83eaa64c8 (patch)
tree4f45aad21db26dcae58ea795f7d1f5d75e52faf0 /ice_validator/tests/utils
parent20b8e673c02ed57cc2393b81bbdda3904ed91da5 (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/utils')
-rwxr-xr-x[-rw-r--r--]ice_validator/tests/utils/volumes.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ice_validator/tests/utils/volumes.py b/ice_validator/tests/utils/volumes.py
index 03ac611..7cdd147 100644..100755
--- 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: