Fixes bug 855823

Change-Id: I7d030b1922c7df87ec59632255ee47f8ff0c15a7
This commit is contained in:
Anthony Young 2011-09-21 11:50:37 -07:00
parent 856ddbcdfc
commit ceab91b4d3
1 changed files with 2 additions and 2 deletions

View File

@ -279,10 +279,10 @@ class AuthProtocol(object):
token_info = json.loads(data) token_info = json.loads(data)
roles = [] roles = []
role_refs = token_info["access"]["user"]["roleRefs"] role_refs = token_info["access"]["user"]["roles"]
if role_refs != None: if role_refs != None:
for role_ref in role_refs: for role_ref in role_refs:
roles.append(role_ref["roleId"]) roles.append(role_ref["id"])
try: try:
tenant = token_info['access']['token']['tenantId'] tenant = token_info['access']['token']['tenantId']