summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/tests/api/openstack/fakes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/api/openstack/fakes.py b/nova/tests/api/openstack/fakes.py
index 6fca19364..71da2fd21 100644
--- a/nova/tests/api/openstack/fakes.py
+++ b/nova/tests/api/openstack/fakes.py
@@ -175,9 +175,9 @@ class FakeAuthDatabase(object):
@staticmethod
def auth_create_token(context, token):
- fakeToken = FakeToken(created_at=datetime.datetime.now(), **token)
- FakeAuthDatabase.data[fakeToken.token_hash] = fakeToken
- return fakeToken
+ fake_token = FakeToken(created_at=datetime.datetime.now(), **token)
+ FakeAuthDatabase.data[fake_token.token_hash] = fake_token
+ return fake_token
@staticmethod
def auth_destroy_token(context, token):