Merge "Handle non-existant plan when getting deployment status" into stable/queens
This commit is contained in:
commit
e8932b9db6
|
@ -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.
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue