summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-10-24 01:07:34 +0000
committerGerrit Code Review <review@openstack.org>2014-10-24 01:07:34 +0000
commit49d000c2958bcd6887bdaad643d6913a02462091 (patch)
tree887961bf5d86c296b12e356a27c22750b04db94f
parent7733aa3635ed662d782bdacbd646439d28ea87a3 (diff)
parent9e28993ee6fb814f014bc73a5611681ca3bb2c65 (diff)
downloadpython-heatclient-49d000c2958bcd6887bdaad643d6913a02462091.tar.gz
Merge "Make sure the --heat-url option is respected"
-rw-r--r--heatclient/common/http.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py
index 3326795..3924010 100644
--- a/heatclient/common/http.py
+++ b/heatclient/common/http.py
@@ -337,6 +337,11 @@ class SessionClient(HTTPClient):
# just return the redirect response. Useful for using stacks:lookup.
follow_redirects = kwargs.pop('follow_redirects', True)
+ # If the endpoint is passed in, make sure keystone uses it
+ # instead of looking up the endpoint in the auth plugin.
+ if self.endpoint:
+ kwargs['endpoint_override'] = self.endpoint
+
resp = self.session.request(url, method, redirect=follow_redirects,
raise_exc=False, **kwargs)