From ebb92f1acc29cbc20f891b906f247f51906a1124 Mon Sep 17 00:00:00 2001 From: rabi Date: Fri, 2 Dec 2016 08:37:22 +0530 Subject: [PATCH] Use default service_type with session At present when using session with heatclient, you've to specify the service_type. Use the only service_type 'orchestration', if not specified. Change-Id: I994698784e5b30471f6d863034fa21aa8963fd9f Partial-Bug: #1646539 --- heatclient/common/http.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heatclient/common/http.py b/heatclient/common/http.py index a9c981c0..dc405f4a 100644 --- a/heatclient/common/http.py +++ b/heatclient/common/http.py @@ -349,6 +349,9 @@ def _construct_http_client(endpoint=None, username=None, password=None, if session: if 'endpoint_override' not in kwargs and endpoint: kwargs['endpoint_override'] = endpoint + elif 'service_type' not in kwargs: + kwargs['service_type'] = 'orchestration' + return SessionClient(session, auth=auth, **kwargs) else: return HTTPClient(endpoint=endpoint, username=username,