Merge "OSC plugin should be region/interface aware"

This commit is contained in:
Jenkins 2016-04-04 09:58:36 +00:00 committed by Gerrit Code Review
commit cc4a611b7b
1 changed files with 7 additions and 1 deletions

View File

@ -33,8 +33,14 @@ def make_client(instance):
API_VERSIONS)
LOG.debug('Instantiating orchestration client: %s', heat_client)
endpoint = instance.get_endpoint_for_service_type(
API_NAME,
region_name=instance._region_name,
interface=instance._interface,
)
client = heat_client(
endpoint=instance.get_endpoint_for_service_type('orchestration'),
endpoint=endpoint,
session=instance.session,
auth_url=instance._auth_url,
username=instance._username,