diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-02-24 23:51:17 -0500 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-02-24 23:51:17 -0500 |
| commit | 865c3d57f8b84dfcc493ecead12816874b160e35 (patch) | |
| tree | 460cdc3e86ae6f8a49718c4dd3610feabfb30abb /nova/api | |
| parent | 2218cb025adca1ded3e6596acc182b88742e3a51 (diff) | |
| download | nova-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.py | 2 |
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 |
