summaryrefslogtreecommitdiff
path: root/keystoneclient/generic
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2014-01-31 19:22:26 +0100
committerAndreas Jaeger <aj@suse.de>2014-02-05 08:57:13 +0100
commit017bb0de3a6cac574612fe67876c5768f5b1adf0 (patch)
tree639fe39277ea1123a0b97dbcd313d5a0b25a98f7 /keystoneclient/generic
parenteab811c307db77740bd00ee1a37d2e93c1ca622e (diff)
downloadpython-keystoneclient-017bb0de3a6cac574612fe67876c5768f5b1adf0.tar.gz
Improve output of "keystone help discover"
The current output of "keystone help discover" is: usage: keystone discover Discover Keystone servers, supported API versions and extensions. Usage:: $ keystone discover Keystone found at http://localhost:35357 - supports version v1.0 (DEPRECATED) here http://localhost:35357/v1.0 - supports version v1.1 (CURRENT) here http://localhost:35357/v1.1 - supports version v2.0 (CURRENT) here http://localhost:35357/v2.0 - and RAX-KSKEY: Rackspace API Key Authentication Admin Extension - and RAX-KSGRP: Rackspace Keystone Group Extensions The reason is that our parser strips away all the line ends. Let's rephrase the text so that it formats more nicely. Now the output is: Discover Keystone servers, supported API versions and extensions. Change-Id: Ic9f9e3e407ae299eb091a0a7093c955dc6cab8f2
Diffstat (limited to 'keystoneclient/generic')
-rw-r--r--keystoneclient/generic/shell.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/keystoneclient/generic/shell.py b/keystoneclient/generic/shell.py
index c8cf352..ccaabfd 100644
--- a/keystoneclient/generic/shell.py
+++ b/keystoneclient/generic/shell.py
@@ -27,17 +27,6 @@ CLIENT_CLASS = client.Client
@utils.unauthenticated
def do_discover(cs, args):
"""Discover Keystone servers, supported API versions and extensions.
-
- Usage::
-
- $ keystone discover
- Keystone found at http://localhost:35357
-
- - supports version v1.0 (DEPRECATED) here http://localhost:35357/v1.0
- - supports version v1.1 (CURRENT) here http://localhost:35357/v1.1
- - supports version v2.0 (CURRENT) here http://localhost:35357/v2.0
- - and RAX-KSKEY: Rackspace API Key Authentication Admin Extension
- - and RAX-KSGRP: Rackspace Keystone Group Extensions
"""
if cs.endpoint:
versions = cs.discover(cs.endpoint)