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)
This commit is contained in:
Emilien Macchi 2019-08-29 18:10:38 -04:00
parent 9b9b5aaadc
commit 4088a579e4
1 changed files with 1 additions and 0 deletions

View File

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