diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-09-06 21:46:40 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-09-06 21:46:40 +0000 |
| commit | dc9ce6d6081867137c91cee235bceaf35906bc87 (patch) | |
| tree | 60140a4ef90823f538e9c338dc467580db4d61ce /openstackclient/identity/client.py | |
| parent | b7816f399766a6aa29e9f147a9546c26c132751f (diff) | |
| parent | 4bbd03210f82d8f9a89627e08a546ba9841ff7fb (diff) | |
| download | python-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.py | 10 |
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 |
