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:
parent
cb7ae677a6
commit
37de593d5b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue