diff --git a/releasenotes/notes/handle-no-deployment-status-a8f73f887f0f158f.yaml b/releasenotes/notes/handle-no-deployment-status-a8f73f887f0f158f.yaml new file mode 100644 index 000000000..6bb3544a1 --- /dev/null +++ b/releasenotes/notes/handle-no-deployment-status-a8f73f887f0f158f.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - When requesting the deployment status of a non-existant plan, instead of + showing a traceback, show a helpful message indicating there is no status. diff --git a/tripleoclient/v1/overcloud_deploy.py b/tripleoclient/v1/overcloud_deploy.py index 53a88a02d..5f7473918 100644 --- a/tripleoclient/v1/overcloud_deploy.py +++ b/tripleoclient/v1/overcloud_deploy.py @@ -953,6 +953,9 @@ class GetDeploymentStatus(command.Command): plan=plan ) + if not status: + return + payload = status['workflow_status']['payload'] execution = payload['execution'] table = PrettyTable(