CLOUDSTACK-4252: Correct the cleanup order of resources

Apply a LIFO cleanup when deleting cloud resources

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-08-14 16:31:55 +05:30
parent e3eee3bd43
commit 9e7983ac18
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class TestOfferings(cloudstackTestCase):
def tearDown(self):
try:
#Clean up, terminate the created accounts, domains etc
cleanup_resources(self.apiclient, self.cleanup)
cleanup_resources(self.apiclient, reversed(self.cleanup))
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return