Cleanup ssh_client connection before deleting stack
Change-Id: Ied3aca70e8b836b93107ff94283e221d30f4314f
This commit is contained in:
parent
111cbaa858
commit
85fbbdae28
|
@ -93,6 +93,11 @@ class ServerStackFixture(heat.HeatStackFixture):
|
||||||
#: Glance image used to create a Nova server instance
|
#: Glance image used to create a Nova server instance
|
||||||
image_fixture = None
|
image_fixture = None
|
||||||
|
|
||||||
|
def delete_stack(self, stack_id=None):
|
||||||
|
if self._outputs:
|
||||||
|
tobiko.cleanup_fixture(self.ssh_client)
|
||||||
|
super(ServerStackFixture, self).delete_stack(stack_id=stack_id)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def image(self):
|
def image(self):
|
||||||
return self.image_fixture.image_id
|
return self.image_fixture.image_id
|
||||||
|
|
Loading…
Reference in New Issue