Browse Source

overcloud status: return a message if no deployment is found

If "openstack overcloud status" has no deployment, returns a proper
message instead of just None.

Change-Id: Ia884a052223be31e8df9de8ae39dacd1fc3159cd
(cherry picked from commit 71135833d9)
tags/11.5.1
Emilien Macchi 3 weeks ago
parent
commit
4088a579e4
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      tripleoclient/v1/overcloud_deploy.py

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

@@ -1044,6 +1044,7 @@ class GetDeploymentStatus(command.Command):
1044 1044
         )
1045 1045
 
1046 1046
         if not status:
1047
+            print('No deployment was found for %s' % plan)
1047 1048
             return
1048 1049
 
1049 1050
         payload = status['workflow_status']['payload']

Loading…
Cancel
Save