aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/VIM/OpenStack/CI
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-12-17 13:54:34 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2015-12-17 13:54:34 +0100
commit6a9072400a0bc86b6b34584150bd0858b6834ac8 (patch)
tree8abf2e0a54d0b0c1b290e3c26d34b00ebfd710c3 /testcases/VIM/OpenStack/CI
parent8c8223c559674664331a7d7b85a5469ce325b626 (diff)
Fix bug clean_openstack if there are no networks.
Change-Id: I0acbfb68142f138d1f866bf40d708bf762de2e1b Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI')
-rw-r--r--testcases/VIM/OpenStack/CI/libraries/clean_openstack.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
index 45617c5b..ffc7082a 100644
--- a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
+++ b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
@@ -149,6 +149,10 @@ def remove_networks(neutron_client):
logger.info("Removing Neutron objects")
network_ids = []
networks = functest_utils.get_network_list(neutron_client)
+ if networks == None:
+ logger.debug("There are no networks in the deployment. ")
+ return
+
logger.debug("Existing networks:")
for network in networks:
net_id = network['id']