diff options
author | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2018-05-16 16:03:57 -0700 |
---|---|---|
committer | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2018-05-16 16:04:48 -0700 |
commit | 1971ef880ff225379d4a91f00f89f323a1605eeb (patch) | |
tree | 344e300746c15a3c331d3f0b4494795ecd9529f6 /swiftclient/client.py | |
parent | 5ed910cd32b0148b086ba4102a082aadb5e283bc (diff) | |
download | python-swiftclient-1971ef880ff225379d4a91f00f89f323a1605eeb.tar.gz |
Make swiftclient respect region_name when using sessions
Change-Id: I94aca6f1120c34616562be7345f0e5aa51a69499
Diffstat (limited to 'swiftclient/client.py')
-rw-r--r-- | swiftclient/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py index ab0fde8..5961744 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -644,8 +644,10 @@ def get_auth(auth_url, user, key, **kwargs): if session: service_type = os_options.get('service_type', 'object-store') interface = os_options.get('endpoint_type', 'public') + region_name = os_options.get('region_name') storage_url = session.get_endpoint(service_type=service_type, - interface=interface) + interface=interface, + region_name=region_name) token = session.get_token() elif auth_version in AUTH_VERSIONS_V1: storage_url, token = get_auth_1_0(auth_url, |