Fix stack delete client

The stack_management.delete_stack class requires a client_manager not
the workflow engine client.

Change-Id: Ib6c72ef84a058a7d6e12a2359f3daa73e2e2fb13
Closes-Bug: #1663416
This commit is contained in:
Alex Schultz 2017-02-09 16:36:04 -07:00
parent 44b94eb1cb
commit 339782e1b8
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class TestDeleteOvercloud(fakes.TestDeployOvercloud):
orchestration_client.stacks.get.assert_called_once_with('overcloud')
mock_delete_stack.assert_called_once_with(
clients.workflow_engine, stack=12345)
clients, stack=12345)
def test_stack_delete_no_stack(self):
clients = self.app.client_manager

View File

@ -58,7 +58,7 @@ class DeleteOvercloud(command.Command):
else:
try:
stack_management.delete_stack(
clients.workflow_engine,
clients,
stack=stack.id
)
except Exception as e: