CLOUDSTACK-8053: Fix loop termination - test_vpc_host_maintenance.py

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Gaurav Aradhye 2014-12-09 16:45:04 +05:30 committed by SrikanteswaraRao Talluri
parent f07c6bce49
commit c4d383786f

View File

@ -221,6 +221,7 @@ class TestVMLifeCycleHostmaintenance(cloudstackTestCase):
cls.hosts = Host.list(cls.api_client, clusterid=cluster.id)
if len(cls.hosts) >= 2:
clusterWithSufficientHosts = cluster
break
if clusterWithSufficientHosts is None:
raise unittest.SkipTest("No Cluster with 2 hosts found")