summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2012-01-23 17:27:36 -0800
committertermie <github@anarkystic.com>2012-01-23 17:27:36 -0800
commit9f0bb492128e396dcdb0d0be76bce913718a6611 (patch)
treec6e37bb8a70523aa72d52db8e1439f8038dfe59a /bin
parentaaf75e9bb0f8a4d19ffb1bac39a737982ca8e6bf (diff)
downloadkeystone-9f0bb492128e396dcdb0d0be76bce913718a6611.tar.gz
keystone-9f0bb492128e396dcdb0d0be76bce913718a6611.tar.xz
keystone-9f0bb492128e396dcdb0d0be76bce913718a6611.zip
some quick fixes to cli, tests incoming
Diffstat (limited to 'bin')
-rwxr-xr-xbin/keystone-manage9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/keystone-manage b/bin/keystone-manage
index ae83c1e7..4bcd5d78 100755
--- a/bin/keystone-manage
+++ b/bin/keystone-manage
@@ -23,7 +23,8 @@ from keystone import config
from keystone.common import utils
-CONF = config.Config(usage='%prog COMMAND [key1=value1 key2=value2 ...]')
+CONF = config.CONF
+CONF.set_usage('%prog COMMAND [key1=value1 key2=value2 ...]')
config.register_cli_str('endpoint',
default='http://localhost:$admin_port/v2.0',
#group='ks',
@@ -37,10 +38,6 @@ config.register_cli_bool('id-only',
default=False,
#group='ks',
conf=CONF)
-config.register_cli_str('admin-port',
- conf=CONF)
-config.register_cli_str('admin-token',
- conf=CONF)
class BaseApp(cli.log.LoggingApp):
@@ -112,7 +109,7 @@ class ClientCommand(BaseApp):
kv = self._parse_keyvalues(self.params.keyvalues)
resp = getattr(self.handle, action_name)(**kv)
- if CONF.ks.id_only and getattr(resp, 'id'):
+ if CONF.id_only and getattr(resp, 'id'):
print resp.id
return
print resp