X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ice_validator%2Ftests%2Ftest_network_format.py;h=de8115d1f68ed8c042d595e9ded27fb0f57b62a6;hb=98d86269d797a390b9e47d41383d0744ea858837;hp=e3607953e083075fedf08e3cc50831c62eecd03b;hpb=0c8c078d41b364602ed967a1bdffdb06c6b53ea7;p=vvp%2Fvalidation-scripts.git diff --git a/ice_validator/tests/test_network_format.py b/ice_validator/tests/test_network_format.py index e360795..de8115d 100644 --- a/ice_validator/tests/test_network_format.py +++ b/ice_validator/tests/test_network_format.py @@ -112,11 +112,11 @@ def test_network_has_subnet(yaml_file): networks.append(k) for k, v in yml["resources"].items(): - if not has_properties(v) and v.get("type") != "OS::Neutron::Subnet": - continue network_prop = v.get("properties", {}).get("network", {}).get("get_resource") - - if not network_prop: + if ( + not has_properties(v) and v.get("type") != "OS::Neutron::Subnet" + and not network_prop + ): continue x = 0 for network in networks: