aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzhilarasi <ezhrajam@in.ibm.com>2019-10-03 20:22:47 +0530
committerEzhilarasi R <ezhrajam@in.ibm.com>2019-10-04 10:04:43 +0000
commit98d86269d797a390b9e47d41383d0744ea858837 (patch)
treeb938ba1490277fd15d842e7ab674de5dcaf6d8e8
parent3d9c7371509f58e53312e5ded8ac90d292e60c6d (diff)
Reduced coginitive compexity from 16 to 15
Change-Id: I416e39f80ede88365b748a2c5c4d46f439a79dd1 Issue-ID: VVP-313 Signed-off-by: Ezhilarasi <ezhrajam@in.ibm.com>
-rw-r--r--ice_validator/tests/test_network_format.py8
1 files changed, 4 insertions, 4 deletions
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: