From 725dbf764fa876977a5ca19a2a1e082a25494eb8 Mon Sep 17 00:00:00 2001 From: rabi Date: Mon, 21 Nov 2016 16:30:08 +0530 Subject: Use endpoint as endpoint_override Number of projects like rally pass endpoint rather than endpoint_override when using session with heatclient. Use endpoint as endpoint_override when not specified. Make it backward compatible. Change-Id: Iff977424a15ac2ce3ffdf8d7c98d5e72d25c1e91 Closes-Bug: #1643507 --- heatclient/common/http.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'heatclient') diff --git a/heatclient/common/http.py b/heatclient/common/http.py index 0a31496..a9c981c 100644 --- a/heatclient/common/http.py +++ b/heatclient/common/http.py @@ -347,6 +347,8 @@ def _construct_http_client(endpoint=None, username=None, password=None, auth = kwargs.pop('auth', None) if session: + if 'endpoint_override' not in kwargs and endpoint: + kwargs['endpoint_override'] = endpoint return SessionClient(session, auth=auth, **kwargs) else: return HTTPClient(endpoint=endpoint, username=username, -- cgit v1.2.1