Merge "Handle non-existant plan when getting deployment status" into stable/queens

This commit is contained in:
Zuul 2019-08-30 22:26:45 +00:00 committed by Gerrit Code Review
commit e8932b9db6
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

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