Add cinder check to support NoneType object 91/4891/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Fri, 18 Dec 2015 17:31:48 +0000 (18:31 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Fri, 18 Dec 2015 17:31:48 +0000 (18:31 +0100)
Change-Id: Ic8606479b8f5ea28cd8884414a6f4a3b76685107
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
testcases/VIM/OpenStack/CI/libraries/clean_openstack.py

index 5d76a70..4dadcbf 100644 (file)
@@ -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