From 9e7983ac18b7c6db5463ca10c75ec12b1fbfbd59 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 14 Aug 2013 16:31:55 +0530 Subject: [PATCH] CLOUDSTACK-4252: Correct the cleanup order of resources Apply a LIFO cleanup when deleting cloud resources Signed-off-by: Prasanna Santhanam --- test/integration/component/test_project_resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/component/test_project_resources.py b/test/integration/component/test_project_resources.py index 924c9169d37..131a9e21050 100644 --- a/test/integration/component/test_project_resources.py +++ b/test/integration/component/test_project_resources.py @@ -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