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 commit71135833d9
) (cherry picked from commit2975806fb5
)
This commit is contained in:
parent
e8932b9db6
commit
a74c62ebf0
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue