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

View File

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