summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-12-18 18:31:48 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2015-12-18 18:31:48 +0100
commit1603c0810fbfc872dada41e5af84e7b5587169e9 (patch)
tree35a9a5601ebe5c29f77942ba632ce3a683d06928
parent31472d96528432e59c404f0093732905c8645577 (diff)
Add cinder check to support NoneType object
Change-Id: Ic8606479b8f5ea28cd8884414a6f4a3b76685107 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
-rw-r--r--testcases/VIM/OpenStack/CI/libraries/clean_openstack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
index 5d76a70b3..4dadcbfb6 100644
--- a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
+++ b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
@@ -115,7 +115,7 @@ def remove_volumes(cinder_client, nova_client):
time.sleep(1)
volumes = functest_utils.get_volumes(cinder_client)
- if len(volumes) == 0:
+ if volumes is None or len(volumes) == 0:
logger.debug("No volumes found.")
return