Skip to content

Instantly share code, notes, and snippets.

@mriedem
Created September 10, 2014 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mriedem/935c36c7c54cae433f68 to your computer and use it in GitHub Desktop.
Save mriedem/935c36c7c54cae433f68 to your computer and use it in GitHub Desktop.
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