From 13b8fc6b304ee28d536fa95bb20db36739a3b523 Mon Sep 17 00:00:00 2001 From: apetrich Date: Mon, 17 Dec 2018 18:38:54 +0100 Subject: [PATCH] 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 --- .../tests/v1/overcloud_delete/test_overcloud_delete.py | 4 ++-- tripleoclient/v1/overcloud_delete.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py b/tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py index 4dd069da3..40c92cfba 100644 --- a/tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py +++ b/tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py @@ -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') diff --git a/tripleoclient/v1/overcloud_delete.py b/tripleoclient/v1/overcloud_delete.py index e49e164dc..2b368ebf9 100644 --- a/tripleoclient/v1/overcloud_delete.py +++ b/tripleoclient/v1/overcloud_delete.py @@ -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(