summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-07-22 20:20:31 +0000
committerVishvananda Ishaya <vishvananda@gmail.com>2011-07-22 20:20:31 +0000
commit0f8eee7ff32a91c866742939b1f551f3610f1276 (patch)
tree2f181ab9efd00956756d4d8a2636f84f9aee3920 /nova/api
parentf9fb313ca2acaf2fd491d5b695381846969b132c (diff)
fix auth tests
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/auth.py b/nova/api/openstack/auth.py
index 9caa14a4e..d42abe1f8 100644
--- a/nova/api/openstack/auth.py
+++ b/nova/api/openstack/auth.py
@@ -62,7 +62,7 @@ class AuthMiddleware(wsgi.Middleware):
# while osapi clients don't use this header
projects = self.auth.get_projects(user_id)
if projects:
- project_id = projects[0]
+ project_id = projects[0].id
else:
return faults.Fault(webob.exc.HTTPUnauthorized())