Merge "Tweaks to the catalog doc and show command"
This commit is contained in:
commit
872e509ca5
@ -9,6 +9,7 @@ catalog list
|
||||
|
||||
List services in the service catalog
|
||||
|
||||
.. program:: catalog list
|
||||
.. code:: bash
|
||||
|
||||
os catalog list
|
||||
@ -18,7 +19,12 @@ catalog show
|
||||
|
||||
Display service catalog details
|
||||
|
||||
.. program:: catalog show
|
||||
.. code:: bash
|
||||
|
||||
os catalog show
|
||||
<service>
|
||||
|
||||
.. describe:: <service>
|
||||
|
||||
Service to display (type or name)
|
||||
|
@ -68,7 +68,7 @@ class ShowCatalog(show.ShowOne):
|
||||
parser.add_argument(
|
||||
'service',
|
||||
metavar='<service>',
|
||||
help=_('Service to display (type, name or ID)'),
|
||||
help=_('Service to display (type or name)'),
|
||||
)
|
||||
return parser
|
||||
|
||||
@ -91,4 +91,9 @@ class ShowCatalog(show.ShowOne):
|
||||
data.pop('endpoints_links')
|
||||
break
|
||||
|
||||
if not data:
|
||||
self.app.log.error('service %s not found\n' %
|
||||
parsed_args.service)
|
||||
return ([], [])
|
||||
|
||||
return zip(*sorted(six.iteritems(data)))
|
||||
|
Loading…
Reference in New Issue
Block a user