Use kwargs when creating mistralclient

Recently in If6ff35e91c3d35c2741332c7e739bb92b1234c54 a refactor of the
authentication in Mistral client stopped it accepting *args and now it
only accepts **kwargs.

kwargs were always expected, but Python will allow you to implicitly
pass them based on the order, but as this was removed and now **kwargs
is in the method signature it wont work.

This is a regression in mistralclient.

Closes-Bug: #1628853
Change-Id: I8b8963c97b9e8c2a31b5f554f737d95685bc330a
This commit is contained in:
Dougal Matthews 2016-09-29 10:37:37 +01:00
parent 5e01225f94
commit 56e65af084
1 changed files with 6 additions and 2 deletions

View File

@ -1157,8 +1157,12 @@ def _post_config(instack_env):
if CONF.enable_mistral:
mistral_url = instack_env['UNDERCLOUD_ENDPOINT_MISTRAL_PUBLIC']
mistral = mistralclient.client(mistral_url, user, password, tenant,
auth_url)
mistral = mistralclient.client(
mistral_url=mistral_url,
username=user,
api_key=password,
project_name=tenant,
auth_url=auth_url)
_post_config_mistral(mistral)