Browse Source

Fix session when user is not in default domain

Use the project_domain_name value returned by the
context instead of using a static value from the
qinling.conf configuration file.

Change-Id: Ic5943bc83e6aadd27d094e28bb60439ca2dbedbd
Story: 2005802
Task: 33537
changes/78/662278/2
Gaetan Trellu 2 years ago
parent
commit
02b957f92e
  1. 2
      qinling/utils/openstack/keystone.py

2
qinling/utils/openstack/keystone.py

@ -32,7 +32,7 @@ def _get_user_keystone_session():
auth = v3.Token(
auth_url=CONF.keystone_authtoken.www_authenticate_uri,
token=ctx.auth_token,
project_domain_name=CONF.keystone_authtoken.project_domain_name,
project_domain_name=ctx.project_domain_name,
project_name=ctx.project_name
)

Loading…
Cancel
Save