Set X-Region-Name in header when using SessionClient
We don't seem to set the header for region name when using session
client. It's used to look for service endpoints in the catalog.
Story:
Task: 26550
MODIFY
heatclient/common/http.py
heatclient/common/http.py
@@ -358,6 +358,10 @@ def _construct_http_client(endpoint=None, username=None, password=None,
if 'interface' not in kwargs and endpoint_type:
kwargs['interface'] = endpoint_type
+ if 'region_name' in kwargs:
+ kwargs['additional_headers'] = {
+ 'X-Region-Name': kwargs['region_name']}
+
return SessionClient(session, auth=auth, **kwargs)
else:
return HTTPClient(endpoint=endpoint, username=username,

Set X-Region-Name in header when using SessionClient

We don't seem to set the header for region name when using session
client. It's used to look for service endpoints in the catalog.

Change-Id: I10cfdfb88b3f09e4ceb69b1020e82c4eba733804
Story: #2003806
Task: 26550