Code Review
/
vvp
/
validation-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[VVP] Updating error reporting for helpers
[vvp/validation-scripts.git]
/
ice_validator
/
tests
/
utils
/
volumes.py
diff --git
a/ice_validator/tests/utils/volumes.py
b/ice_validator/tests/utils/volumes.py
old mode 100644
(file)
new mode 100755
(executable)
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.
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
-import yaml
from os import path
from os import path
+import yaml
+
+VERSION = '1.0.0'
def get_volume_resources(heat_template):
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)
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:
return {}
if 'outputs' not in yml: