diff --git a/test/integration/smoke/test_storage_policy.py b/test/integration/smoke/test_storage_policy.py index c89c14d5d17..c3e04ea3d7e 100644 --- a/test/integration/smoke/test_storage_policy.py +++ b/test/integration/smoke/test_storage_policy.py @@ -88,7 +88,7 @@ class TestVMWareStoragePolicies(cloudstackTestCase): def tearDown(self): try: self.debug("Cleaning up the resources") - cleanup_resources(self.apiclient, self.cleanup) + cleanup_resources(self.apiclient, reversed(self.cleanup)) self.debug("Cleanup complete!") except Exception as e: self.debug("Warning! Exception in tearDown: %s" % e)