Fix auth_url to request.user.endpoint

The Horizon masakari-dashboard only connects to the public in the
openstack_connection() function (masakaridashboard/api/api.py).

Closes-Bug: #2035571

Change-Id: I15433029ee9775fb593937f34c287a66125a1aab
This commit is contained in:
chung00-lee 2023-09-17 01:04:22 +09:00
parent cb7ae677a6
commit 37de593d5b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def openstack_connection(request, version=None):
interface = getattr(settings, 'OPENSTACK_ENDPOINT_TYPE', 'publicURL')
auth = token.Token(
auth_url=getattr(settings, 'OPENSTACK_KEYSTONE_URL'),
auth_url=request.user.endpoint,
token=request.user.token.id,
project_name=request.user.project_name,
project_id=request.user.tenant_id)