Fix mistralclient not pass ca_cert when using OpenStack CLI
This patch is aim to fix mistralclient not pass ca_cert when user
enable ca_cert in openstack and use OpenStack CLI to call mistral
API.
* Add ca_cert parameter in plugin.py
Closes-Bug: #2120693
Change-Id: Id976d1affef7fe5a266653ed1d43650aa0bea26b
Signed-off-by: shuwcai <shuwcai@cisco.com>
This commit is contained in:
@@ -43,7 +43,9 @@ def make_client(instance):
|
||||
interface='publicURL'
|
||||
)
|
||||
|
||||
client = workflow_client(mistral_url=mistral_url, session=instance.session)
|
||||
client = workflow_client(
|
||||
mistral_url=mistral_url, session=instance.session,
|
||||
cacert=instance._cacert if instance._cacert else None)
|
||||
|
||||
return client
|
||||
|
||||
|
||||
Reference in New Issue
Block a user