Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update EC2KeystoneAuth to grab tenant 'id'.
Updates the EC2KeystoneAuth middleware so that it supports
formatting changes to the Keystone /ec2tokens extension.
Instead of setting project_id to a tenant dict this change
correctly sets it to an id.

Fixes LP Bug #941119.

Change-Id: I318ed594929162eafb5d7c3d8b9583cb109b73d4
  • Loading branch information
dprince committed Feb 25, 2012
1 parent e60398b commit e2be2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/api/ec2/__init__.py
Expand Up @@ -307,7 +307,7 @@ def __call__(self, req):
try:
token_id = result['access']['token']['id']
user_id = result['access']['user']['id']
project_id = result['access']['token']['tenant']
project_id = result['access']['token']['tenant']['id']
roles = [role['name'] for role
in result['access']['user']['roles']]
except (AttributeError, KeyError), e:
Expand Down

0 comments on commit e2be2d8

Please sign in to comment.