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