summaryrefslogtreecommitdiffstats
path: root/nova/db
diff options
context:
space:
mode:
authorCerberus <matt.dietz@rackspace.com>2010-09-21 10:07:59 -0500
committerCerberus <matt.dietz@rackspace.com>2010-09-21 10:07:59 -0500
commit0880e49a4e9c9a246e8f4d7cc805d79947de095a (patch)
treed0acefdb6460ff650206955386264fc83e9ba74a /nova/db
parent64dd3000c4a9b88719e86d1090097e35398d3838 (diff)
Some more refactoring and another unit test
Diffstat (limited to 'nova/db')
-rw-r--r--nova/db/api.py4
-rw-r--r--nova/db/sqlalchemy/api.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 80dde7a7a..0f0549edf 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -384,9 +384,9 @@ def auth_get_token(context, token_hash):
"""Retrieves a token given the hash representing it"""
return IMPL.auth_get_token(context, token_hash)
-def auth_create_token(context, token, user_id):
+def auth_create_token(context, token):
"""Creates a new token"""
- return IMPL.auth_create_token(context, token_hash, token, user_id)
+ return IMPL.auth_create_token(context, token_hash, token)
###################
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 681dec15e..78bc23b7b 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -551,7 +551,7 @@ def auth_get_token(_context, token_hash):
raise exception.NotFound('Token %s does not exist' % token_hash)
return tk
-def auth_create_token(_context, token, user_id):
+def auth_create_token(_context, token):
tk = models.AuthToken()
for k,v in token.iteritems():
tk[k] = v