diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-01-13 07:45:15 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-01-13 07:45:15 +0000 |
| commit | 872e509ca5eeaf5e2ec61aea6a5ca393d47c3a65 (patch) | |
| tree | a6e989e5a3047df65399b46d03fccce15757b99e /openstackclient | |
| parent | 2525ec4e52cf12f7d8426f01cc5491ea3c5ee162 (diff) | |
| parent | c04b49ef07defdecadcf614d9ff4cde4b3dd029b (diff) | |
| download | python-openstackclient-872e509ca5eeaf5e2ec61aea6a5ca393d47c3a65.tar.gz | |
Merge "Tweaks to the catalog doc and show command"
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/identity/v2_0/catalog.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/identity/v2_0/catalog.py b/openstackclient/identity/v2_0/catalog.py index 0558c075..f6048378 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 @@ -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))) |
