mirror of https://github.com/apache/cloudstack.git
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:
parent
e3eee3bd43
commit
9e7983ac18
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue