summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
authortamilhce <tamilhce@gmail.com>2016-09-09 09:25:41 +0530
committerrabi <ramishra@redhat.com>2016-09-09 10:01:39 +0530
commitf2147f79aaa42aedbb8c3413151fade301f468e8 (patch)
tree440bdad104e770a30154e0317211584897b8cd5f /heatclient/common
parentdde6bc4d4fcf0461ca3907ce87693673f9a3325d (diff)
downloadpython-heatclient-f2147f79aaa42aedbb8c3413151fade301f468e8.tar.gz
Don't use endpoint_override with session
We should not use endpoint_override by default and rather use service_type with session. This also refactors some of the associated code. However, if one wants to override the endpoint they can pass endpoint_override to the client constructor along with session. Change-Id: I7c27d8ff827de3b4bb3e70457c0b6a3f47b6d7bb Co-Authored-By: Rabi Mishra <ramishra@redhat.com> Closes-Bug: #1621505
Diffstat (limited to 'heatclient/common')
-rw-r--r--heatclient/common/http.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py
index 329d9c2..3d05b91 100644
--- a/heatclient/common/http.py
+++ b/heatclient/common/http.py
@@ -347,7 +347,6 @@ def _construct_http_client(endpoint=None, username=None, password=None,
auth = kwargs.pop('auth', None)
if session:
- kwargs['endpoint_override'] = endpoint
return SessionClient(session, auth=auth, **kwargs)
else:
return HTTPClient(endpoint=endpoint, username=username,