Fix stack.name to stack.stack_name

The property that holds the stack name was wrongly named as stack.name
This fix to the correct name. It also depends on the patch that makes it
wait on delete cases.

Change-Id: Ibf837cd2cc0488445229e50d52bb631188227e0e
Depends-on: I45442ef2c622463a957c84be47f38ec4528001ac
Closes-Bug: #1802102
This commit is contained in:
apetrich 2018-12-17 18:38:54 +01:00
parent 337e31643f
commit 13b8fc6b30
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ class TestDeleteOvercloud(fakes.TestDeployOvercloud):
stack = mock.Mock()
stack.id = 12345
stack.name = "foobar"
stack.stack_name = "foobar"
orchestration_client.stacks.get.return_value = stack
self.cmd._plan_undeploy(clients, 'overcloud')
@ -56,7 +56,7 @@ class TestDeleteOvercloud(fakes.TestDeployOvercloud):
stack = mock.Mock()
stack.id = 12345
stack.name = "foobar"
stack.stack_name = "foobar"
orchestration_client.stacks.get.return_value = stack
self.cmd._plan_undeploy(clients, 'overcloud')

View File

@ -59,7 +59,7 @@ class DeleteOvercloud(command.Command):
try:
stack_management.plan_undeploy(
clients,
plan=stack.name
plan=stack.stack_name
)
except Exception as e:
raise oscexc.CommandError(