summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-02-24 23:51:17 -0500
committerTodd Willey <todd@ansolabs.com>2011-02-24 23:51:17 -0500
commit865c3d57f8b84dfcc493ecead12816874b160e35 (patch)
tree460cdc3e86ae6f8a49718c4dd3610feabfb30abb /nova/api
parent2218cb025adca1ded3e6596acc182b88742e3a51 (diff)
downloadnova-865c3d57f8b84dfcc493ecead12816874b160e35.tar.gz
nova-865c3d57f8b84dfcc493ecead12816874b160e35.tar.xz
nova-865c3d57f8b84dfcc493ecead12816874b160e35.zip
Pass id of token to be deleted to the db api, not the actual object.
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 c844c6231..dff69a7f2 100644
--- a/nova/api/openstack/auth.py
+++ b/nova/api/openstack/auth.py
@@ -107,7 +107,7 @@ class AuthMiddleware(wsgi.Middleware):
if token:
delta = datetime.datetime.now() - token.created_at
if delta.days >= 2:
- self.db.auth_token_destroy(ctxt, token)
+ self.db.auth_token_destroy(ctxt, token.id)
else:
return self.auth.get_user(token.user_id)
return None