quantum_auth_token.py middleware fails on roles

Fixes bug 900330.

Change-Id: I174f0f76dcec761604bc05dd8fa0b2344f73e0b7
This commit is contained in:
Édouard Thuleau 2011-12-07 16:04:36 +01:00
parent 5d3fc70483
commit 45b68d9882
3 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<dolph.mathews@rackspace.com> <dolph.mathews@gmail.com>
Edouard Thuleau <edouard1.thuleau@orange.com>
<jeblair@hp.com> <corvus@gnu.org>
<jeblair@hp.com> <james.blair@rackspace.com>
<joon.eo@gmail.com> <john.eo@rackspace.com>

View File

@ -5,6 +5,7 @@ Anthony Young <sleepsonthefloor@gmail.com>
Brian Lamar <brian.lamar@gmail.com>
Dan Prince <dan.prince@rackspace.com>
Dolph Mathews <dolph.mathews@gmail.com>
Edouard Thuleau <edouard1.thuleau@orange.com>
gholt <gholt@brim.net>
jabdul <abdulkader.j@hcl.com>
James E. Blair <jeblair@hp.com>

View File

@ -364,7 +364,7 @@ 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"])
roles.append(role_ref["id"])
token_info = json.loads(data)