Skip to content

Commit 10a0682

Browse files
shuwcaiarnaudmorin
authored andcommitted
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>
1 parent 097f037 commit 10a0682

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mistralclient/osc/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ def make_client(instance):
4343
interface='publicURL'
4444
)
4545

46-
client = workflow_client(mistral_url=mistral_url, session=instance.session)
46+
client = workflow_client(
47+
mistral_url=mistral_url, session=instance.session,
48+
cacert=instance._cacert if instance._cacert else None)
4749

4850
return client
4951

0 commit comments

Comments
 (0)