diff options
author | rabi <ramishra@redhat.com> | 2016-12-02 08:37:22 +0530 |
---|---|---|
committer | rabi <ramishra@redhat.com> | 2016-12-02 08:40:38 +0530 |
commit | ebb92f1acc29cbc20f891b906f247f51906a1124 (patch) | |
tree | 55184d8af208f704712e9b7da8b1939cadc32c91 /heatclient/common | |
parent | 2f4feffd7347f1f00f86e83c8b4ab0db986e4858 (diff) | |
download | python-heatclient-ebb92f1acc29cbc20f891b906f247f51906a1124.tar.gz |
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
Diffstat (limited to 'heatclient/common')
-rw-r--r-- | heatclient/common/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py index a9c981c..dc405f4 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, |