Fixes auth_token middleware to allow admin users in nova
Change-Id: I50c46fe441e303089d7e12d44f7dbf387f70913e
This commit is contained in:
parent
10f4511037
commit
22510c7917
|
@ -282,7 +282,9 @@ class AuthProtocol(object):
|
|||
role_refs = token_info["access"]["user"]["roles"]
|
||||
if role_refs != None:
|
||||
for role_ref in role_refs:
|
||||
roles.append(role_ref["id"])
|
||||
# Nova looks for the non case-sensitive role 'Admin'
|
||||
# to determine admin-ness
|
||||
roles.append(role_ref["name"])
|
||||
|
||||
try:
|
||||
tenant = token_info['access']['token']['tenantId']
|
||||
|
|
Loading…
Reference in New Issue