Honor endpoint_override for get_session_client

get_session_client is not passing endpoint_override settings to the
Adapter constructor causing the setting to be ignored. Pass the setting
in as a parameter.

Change-Id: I1e57579291a3943fca090100b43905f71b2daab4
This commit is contained in:
Monty Taylor 2018-05-01 07:21:52 -05:00
parent 9c31aeca60
commit b9be78d550
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 6 additions and 0 deletions

View File

@ -350,6 +350,7 @@ class CloudRegion(object):
version=version_request.version,
min_version=version_request.min_api_version,
max_version=version_request.max_api_version,
endpoint_override=self.get_endpoint(service_key),
**kwargs)
def _get_highest_endpoint(self, service_types, kwargs):

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixed issue where ``endpoint_override`` settings were not getting passed
to the Adapter constructor in ``get_session_client``.