aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/utils/ports.py
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2019-11-18 13:45:47 -0800
committerstark, steven <steven.stark@att.com>2019-11-18 14:30:09 -0800
commit1d281ce111a76c2b056bcaa572c1e929c90237cf (patch)
treeaefc59fd8aae102d60c75aed484750075e892423 /ice_validator/tests/utils/ports.py
parent0c4e64d87728b89aa9cd4d41d738f5bfe64ceee3 (diff)
[VVP] Updating vm_type class test to proceed if no cinder
Other minor changes - updating error message to be more clear for vm_type class - updating test_network_format to handle nested files w/ no resources - updating ports.py to handle hardcoded str_replace param/values Issue-ID: VVP-342 Signed-off-by: stark, steven <steven.stark@att.com> Change-Id: I63fcda582fe25dcedca87e874327b7ea56fe6ef3
Diffstat (limited to 'ice_validator/tests/utils/ports.py')
-rw-r--r--ice_validator/tests/utils/ports.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ice_validator/tests/utils/ports.py b/ice_validator/tests/utils/ports.py
index 1f5f658..d6c3be9 100644
--- a/ice_validator/tests/utils/ports.py
+++ b/ice_validator/tests/utils/ports.py
@@ -160,8 +160,9 @@ def validate_port_parameter(
If the parameter is present in the resource metadata
and exemptions are allowed, then the validation will be skipped.
"""
- parameter = param.get("get_param")
- if not parameter:
+ if isinstance(param, dict) and "get_param" in param:
+ parameter = param.get("get_param")
+ else:
return (
"Unexpected parameter format for {} {} property {}: {}. "
"Please consult the heat guidelines documentation for details."