Merge "Fix CA file for API client"

This commit is contained in:
Zuul 2020-09-23 08:59:49 +00:00 committed by Gerrit Code Review
commit 7e7cd03fb1
2 changed files with 7 additions and 1 deletions

View File

@ -41,7 +41,8 @@ def openstack_connection(request, version=None):
token=request.user.token.id,
project_name=request.user.project_name,
project_id=request.user.tenant_id)
session = ks_session.Session(auth=auth)
cacert = getattr(settings, 'OPENSTACK_SSL_CACERT')
session = ks_session.Session(auth=auth, verify=cacert or True)
conn = connection.Connection(session=session,
interface=interface,
ha_api_version=version)

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes an issue where the dashboard fails to load if communication with the
API requires a custom CA certificate.