diff options
author | Steve Martinelli <stevemar@ca.ibm.com> | 2016-03-09 10:14:11 -0500 |
---|---|---|
committer | Steve Martinelli <s.martinelli@gmail.com> | 2016-05-18 02:08:32 -0400 |
commit | 2d32a08a23d12ac0e655e891a1b32bcf9f170448 (patch) | |
tree | 6afe5e59cf4175ba486122e3dbc99aaa2d758388 /heatclient/shell.py | |
parent | db07e2139e9b91f27307e3533081c91331115ca8 (diff) | |
download | python-heatclient-2d32a08a23d12ac0e655e891a1b32bcf9f170448.tar.gz |
switch to keystoneauth
move heatclient to keystoneauth as keystoneclient's auth session,
plugins and adapter code has been deprecated [1].
[1] http://docs.openstack.org/releasenotes/python-keystoneclient/mitaka.html#deprecation-notes
Change-Id: Iedd7ceb97d39ab3ecccf8786aad8b5f45d15175e
Diffstat (limited to 'heatclient/shell.py')
-rw-r--r-- | heatclient/shell.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/heatclient/shell.py b/heatclient/shell.py index 5f13b0f..f71d8d7 100644 --- a/heatclient/shell.py +++ b/heatclient/shell.py @@ -20,17 +20,16 @@ import argparse import logging import sys +from keystoneauth1 import discover +from keystoneauth1 import exceptions as ks_exc +from keystoneauth1.identity import v2 as v2_auth +from keystoneauth1.identity import v3 as v3_auth +from keystoneauth1 import session as kssession from oslo_utils import encodeutils from oslo_utils import importutils import six import six.moves.urllib.parse as urlparse -from keystoneclient.auth.identity import v2 as v2_auth -from keystoneclient.auth.identity import v3 as v3_auth -from keystoneclient import discover -from keystoneclient import exceptions as ks_exc -from keystoneclient import session as kssession - import heatclient from heatclient import client as heat_client from heatclient.common import utils @@ -409,7 +408,7 @@ class HeatShell(object): v2_auth_url = None v3_auth_url = None try: - ks_discover = discover.Discover(session=session, auth_url=auth_url) + ks_discover = discover.Discover(session=session, url=auth_url) v2_auth_url = ks_discover.url_for('2.0') v3_auth_url = ks_discover.url_for('3.0') except ks_exc.ClientException: |