[VVP] Updating vm_type class test to proceed if no cinder
[vvp/validation-scripts.git] / ice_validator / tests / utils / ports.py
index 1f5f658..d6c3be9 100644 (file)
@@ -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.
     """
     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."
         return (
             "Unexpected parameter format for {} {} property {}: {}. "
             "Please consult the heat guidelines documentation for details."