Change usage of _auth_url private attribute

python-openstackclient-2.6.1 has been changed
to use osc-lib ClientManager which removes
some private attributes.

We can change '_interface' and '_region_name'
once the requirements change to 2.6.1.

Change-Id: I17fbe2250fdeb60ffb9b2f94df26d9edef00bea6
Closes-Bug: #1605876
This commit is contained in:
Rabi Mishra 2016-07-30 08:04:45 +05:30
parent 937b1f14c6
commit 4d7ab61187
1 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,8 @@ def make_client(instance):
API_VERSIONS)
LOG.debug('Instantiating orchestration client: %s', heat_client)
# Note: We can change '_interface' and '_region_name' once
# the requirements change to python-openstackclient-2.6.1
endpoint = instance.get_endpoint_for_service_type(
API_NAME,
region_name=instance._region_name,
@ -40,7 +42,7 @@ def make_client(instance):
)
kwargs = {'endpoint': endpoint,
'auth_url': instance._auth_url,
'auth_url': instance.auth.auth_url,
'region_name': instance._region_name,
'username': instance.auth_ref.username}