Use both endpoint and endpoint_override

Use both endpoint and endpoint_override to support
python-heatclient<1.6.0.

Change-Id: Ifb13ce90ee3e4063c2e16cf0a3cda1817dc45d29
Related-Bug: #1643507
This commit is contained in:
rabi 2016-11-21 21:04:35 +05:30
parent bdcedf2fa6
commit 7780f7a60e
1 changed files with 3 additions and 0 deletions

View File

@ -39,7 +39,10 @@ class HeatClientPlugin(client_plugin.ClientPlugin):
args['username'] = self.context.username
args['password'] = self.context.password
# Note: Remove 'endpoint' from args when requirements
# changes to python-heatclient>=1.6.0
return hc.Client('1', endpoint_override=endpoint,
endpoint=endpoint,
session=self.context.keystone_session,
**args)