Fixes Keystone v3 401 authentication failures

Change-Id: I8edaf653b39502959e8850e82cfa193608889e38
Partially-Closes-Bug: #1669238
This commit is contained in:
Sharmin Choksey 2017-03-01 19:30:43 -08:00 committed by Vinod Pandarinathan
parent 27daddf868
commit 3ae07695e4
1 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ def _get_kssession():
elif cfg.CONF.keystone_authtoken.auth_uri[-1:] == '3':
client = v3_client
kwargs['project_name'] = cfg.CONF.keystone_authtoken.project_name
kwargs['user_domain_id'] = cfg.CONF.keystone_authtoken.user_domain_id
kwargs[
'project_domain_id'] = (cfg.CONF.keystone_authtoken.
project_domain_id)
kwargs['user_domain_name'] = \
cfg.CONF.keystone_authtoken.user_domain_name
kwargs['project_domain_name'] = \
cfg.CONF.keystone_authtoken.project_domain_name
else:
raise Exception('Unknown keystone version!')