From 9869b3e40a4ca911dc98d9f0ae201ac13247bdc3 Mon Sep 17 00:00:00 2001 From: shuwcai Date: Fri, 15 Aug 2025 02:34:58 +0000 Subject: [PATCH] Fix mistraldashboard not pass ca_cert when enable CA cert in horizon This patch is aim to fix mistral dashboard not pass ca_cert when user enable ca_cert in openstack and login horizon to call mistral API. * Add ca_cert parameter in api.py Closes-Bug: #1808346 Change-Id: I692d4aad3453c2606b1e42ba43561ce4ef929819 Signed-off-by: shuwcai --- mistraldashboard/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mistraldashboard/api.py b/mistraldashboard/api.py index 8fc655c..c9264e4 100644 --- a/mistraldashboard/api.py +++ b/mistraldashboard/api.py @@ -45,7 +45,8 @@ def mistralclient(request): service_type=SERVICE_TYPE, # We should not treat definition as file path or uri otherwise # we allow access to contents in internal servers - enforce_raw_definition=False + enforce_raw_definition=False, + cacert=getattr(settings, 'OPENSTACK_SSL_CACERT') )