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)
(cherry picked from commit 2975806fb5)
This commit is contained in:
Emilien Macchi 2019-08-29 18:10:38 -04:00
parent e8932b9db6
commit a74c62ebf0
1 changed files with 1 additions and 0 deletions

View File

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