Browse Source

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

tags/9.3.1
Zuul 2 weeks ago
parent
commit
e8932b9db6

+ 4
- 0
releasenotes/notes/handle-no-deployment-status-a8f73f887f0f158f.yaml View File

@@ -0,0 +1,4 @@
1
+---
2
+fixes:
3
+  - When requesting the deployment status of a non-existant plan, instead of
4
+    showing a traceback, show a helpful message indicating there is no status.

+ 3
- 0
tripleoclient/v1/overcloud_deploy.py View File

@@ -1079,6 +1079,9 @@ class GetDeploymentStatus(command.Command):
1079 1079
             plan=plan
1080 1080
         )
1081 1081
 
1082
+        if not status:
1083
+            return
1084
+
1082 1085
         payload = status['workflow_status']['payload']
1083 1086
         execution = payload['execution']
1084 1087
         table = PrettyTable(

Loading…
Cancel
Save