summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v2_0/token.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2014-08-22 17:26:07 -0500
committerDean Troyer <dtroyer@gmail.com>2014-09-08 00:06:52 -0500
commitae957b176e5918f41024c00cbc39ea371a0c37c6 (patch)
treef087abc03197bdbfbfe07ab46cefde083a487c56 /openstackclient/identity/v2_0/token.py
parent3317e0abf694c56cb3b24bdf2b2b10577ea47f6b (diff)
downloadpython-openstackclient-ae957b176e5918f41024c00cbc39ea371a0c37c6.tar.gz
Use Keystone client session.Session
This replaces the restapi requests wrapper with the one from Keystone client so we can take advantage of the auth plugins. As a first step only the v2 and v3 token and password plugins are supported. This maintainis no changes to the command options or environment variables. The next steps will include reworking the other API client interfaces to fully utilize the single auth session. Blueprint: ksc-session-auth Change-Id: I47ec63291e4c3cf36c8061299a4764f60b36ab89
Diffstat (limited to 'openstackclient/identity/v2_0/token.py')
-rw-r--r--openstackclient/identity/v2_0/token.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/identity/v2_0/token.py b/openstackclient/identity/v2_0/token.py
index cc2c8a7f..f3fedc01 100644
--- a/openstackclient/identity/v2_0/token.py
+++ b/openstackclient/identity/v2_0/token.py
@@ -33,9 +33,8 @@ class IssueToken(show.ShowOne):
def take_action(self, parsed_args):
self.log.debug('take_action(%s)', parsed_args)
- identity_client = self.app.client_manager.identity
- token = identity_client.service_catalog.get_token()
+ token = self.app.client_manager.auth_ref.service_catalog.get_token()
token['project_id'] = token.pop('tenant_id')
return zip(*sorted(six.iteritems(token)))