Merge "Handle non-existant plan when getting deployment status"

This commit is contained in:
Zuul 2018-10-07 00:51:59 +00:00 committed by Gerrit Code Review
commit 0bf7e4530d
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -973,6 +973,9 @@ class GetDeploymentStatus(command.Command):
plan=plan
)
if not status:
return
payload = status['workflow_status']['payload']
execution = payload['execution']
table = PrettyTable(