summaryrefslogtreecommitdiff
path: root/openstackclient/identity
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2014-08-08 17:38:44 -0500
committerDean Troyer <dtroyer@gmail.com>2014-08-25 13:38:03 -0500
commit4bbd03210f82d8f9a89627e08a546ba9841ff7fb (patch)
treea10df1f472a8b8925c778b5660115ac31c0bbc20 /openstackclient/identity
parent19b8605224156c48107541580a264860131b57ab (diff)
downloadpython-openstackclient-4bbd03210f82d8f9a89627e08a546ba9841ff7fb.tar.gz
Change app.restapi to app.client_manager.session
This is step 1 toward using Keystone client's session.Session as the primary session/requests interface in OSC. * Move the session create into ClientManager and rename 'restapi' attribute to 'session' * Set up ClientManager and session loggers * Fix container and object command references to restapi/api Change-Id: I013d81520b336c7a6422cd22c05d1d65655e64f8
Diffstat (limited to 'openstackclient/identity')
-rw-r--r--openstackclient/identity/client.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/openstackclient/identity/client.py b/openstackclient/identity/client.py
index 7f5390c8..172910f5 100644
--- a/openstackclient/identity/client.py
+++ b/openstackclient/identity/client.py
@@ -66,7 +66,17 @@ def make_client(instance):
insecure=instance._insecure,
trust_id=instance._trust_id,
)
+
+ # TODO(dtroyer): the identity v2 role commands use this yet, fix that
+ # so we can remove it
instance.auth_ref = client.auth_ref
+
+ # NOTE(dtroyer): this is hanging around until restapi is replace by
+ # ksc session
+ instance.session.set_auth(
+ client.auth_ref.auth_token,
+ )
+
return client