Handle non-existant plan when getting deployment status
Instead of showing a traceback when requesting the deployment status of
a non-existant plan, show a useful message instead.
Change-Id: I3b10361fd17e1068e46a219b8081451f5c7ed035
Depends-On: Ic0333c0726b16d284a7cc54bc68e16ea1c9ebc4d
Closes-Bug: #1792637
(cherry picked from commit 0b14fd10fd
)
This commit is contained in:
parent
0704f880ff
commit
559365aaae
|
@ -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.
|
|
@ -970,6 +970,9 @@ class GetDeploymentStatus(command.Command):
|
|||
plan=plan
|
||||
)
|
||||
|
||||
if not status:
|
||||
return
|
||||
|
||||
payload = status['workflow_status']['payload']
|
||||
execution = payload['execution']
|
||||
table = PrettyTable(
|
||||
|
|
Loading…
Reference in New Issue