Created
September 10, 2014 18:42
-
-
Save mriedem/935c36c7c54cae433f68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py | |
index dfd4658..38e4ae6 100644 | |
--- a/tempest/scenario/manager.py | |
+++ b/tempest/scenario/manager.py | |
@@ -265,13 +265,11 @@ class ScenarioTest(tempest.test.BaseTestCase): | |
size=size, display_name=name, snapshot_id=snapshot_id, | |
imageRef=imageRef, volume_type=volume_type) | |
if wait_on_delete: | |
- self.addCleanup(self.volumes_client.wait_for_resource_deletion, | |
- volume['id']) | |
- self.addCleanup_with_wait( | |
- waiter_callable=self.volumes_client.wait_for_resource_deletion, | |
- thing_id=volume['id'], thing_id_param='id', | |
- cleanup_callable=self.delete_wrapper, | |
- cleanup_args=[self.volumes_client.delete_volume, volume['id']]) | |
+ self.addCleanup_with_wait( | |
+ waiter_callable=self.volumes_client.wait_for_resource_deletion, | |
+ thing_id=volume['id'], thing_id_param='id', | |
+ cleanup_callable=self.delete_wrapper, | |
+ cleanup_args=[self.volumes_client.delete_volume, volume['id']]) | |
self.assertEqual(name, volume['display_name']) | |
self.volumes_client.wait_for_volume_status(volume['id'], 'available') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment