summaryrefslogtreecommitdiff
path: root/openstackclient/identity/client.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-09-06 21:46:40 +0000
committerGerrit Code Review <review@openstack.org>2014-09-06 21:46:40 +0000
commitdc9ce6d6081867137c91cee235bceaf35906bc87 (patch)
tree60140a4ef90823f538e9c338dc467580db4d61ce /openstackclient/identity/client.py
parentb7816f399766a6aa29e9f147a9546c26c132751f (diff)
parent4bbd03210f82d8f9a89627e08a546ba9841ff7fb (diff)
downloadpython-openstackclient-dc9ce6d6081867137c91cee235bceaf35906bc87.tar.gz
Merge "Change app.restapi to app.client_manager.session"
Diffstat (limited to 'openstackclient/identity/client.py')
-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 a2bbb61d..820d08cb 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