Return "overcloud status" output without debug

Currently, "openstack overcloud status" without debug
returns nothing if overcloud stack is not available.

~~~
$ openstack overcloud status
$
~~~

This was not the case in ussuri[0] and older branches,

Till ussuri :-
~~~
$ openstack overcloud status
No deployment was found for overcloud
~~~

With this patch, We are improvining the user experience
incase no overcloud deployment is found.

[0] https://opendev.org/openstack/python-tripleoclient/src/branch/stable/ussuri/tripleoclient/v1/overcloud_deploy.py#L1198-L1200

Closes-bug: #1943855
Change-Id: Ice40c5000fa3ef22cacdb4ddb0c32bda245245b0
(cherry picked from commit b6a1b08167)
This commit is contained in:
Sandeep Yadav 2021-09-16 23:04:31 +05:30
parent 456dc483ff
commit a11d2b317c
1 changed files with 1 additions and 1 deletions

View File

@ -1246,7 +1246,7 @@ class GetDeploymentStatus(command.Command):
)
if not status:
self.log.info('No deployment was found for %s' % plan)
print('No deployment was found for %s' % plan)
return
table = PrettyTable(