summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorSteve Martinelli <stevemar@ca.ibm.com>2015-01-09 23:44:25 -0500
committerSteve Martinelli <stevemar@ca.ibm.com>2015-01-13 05:59:38 +0000
commitc04b49ef07defdecadcf614d9ff4cde4b3dd029b (patch)
tree53c3c815d8157e411df2852cd5bf4ed3c8e3917e /openstackclient
parent019c155e9b308dab002f23064b969452bc3d7a89 (diff)
downloadpython-openstackclient-c04b49ef07defdecadcf614d9ff4cde4b3dd029b.tar.gz
Tweaks to the catalog doc and show command
Looks like providing a service id isn't working, so it the help message was reduced to just type and name. Added a bit more to the docs, too. Change-Id: Id7f8b48bdf99773ad55ca7f204f3c779f84633d5
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/identity/v2_0/catalog.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/identity/v2_0/catalog.py b/openstackclient/identity/v2_0/catalog.py
index 330dcf3b..3aeca918 100644
--- a/openstackclient/identity/v2_0/catalog.py
+++ b/openstackclient/identity/v2_0/catalog.py
@@ -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
@@ -96,4 +96,9 @@ class ShowCatalog(show.ShowOne):
if 'endpoints_links' in data:
data.pop('endpoints_links')
+ if not data:
+ self.app.log.error('service %s not found\n' %
+ parsed_args.service)
+ return ([], [])
+
return zip(*sorted(six.iteritems(data)))