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:
parent
44b94eb1cb
commit
339782e1b8
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user