CLOUDSTACK-7965: Fix script related to force delete domain test case

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Ashutosh K 2014-11-24 16:16:55 +05:30 committed by SrikanteswaraRao Talluri
parent 3fe1f732d7
commit 2805f51e43

View File

@ -2784,15 +2784,15 @@ class TestVPCNetworkOperations(cloudstackTestCase):
"vlan must not be null for persistent network: %s" %
persistent_network_2.id)
# Force delete domain
child_domain.delete(self.apiclient, cleanup=True)
except Exception as e:
self.cleanup.append(account_1)
self.cleanup.append(account_2)
self.cleanup.append(child_domain)
self.fail(e)
# Force delete domain
child_domain.delete(self.apiclient, cleanup=True)
self.debug("Waiting for account.cleanup.interval" +
" to cleanup any remaining resouces")
# Sleep 3*account.gc to ensure that all resources are deleted