summaryrefslogtreecommitdiffstats
path: root/nova/api/openstack/auth.py
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-05-17 12:12:48 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2011-05-17 12:12:48 -0700
commit91e96cea27c91190f6205defa1f5a3641a0e0f56 (patch)
tree1d4123f0789dfc10d795eaebb4c2d2700f6aab03 /nova/api/openstack/auth.py
parent11a36377f81f6f4c6c20e5802aa91e472772fbc9 (diff)
downloadnova-91e96cea27c91190f6205defa1f5a3641a0e0f56.tar.gz
nova-91e96cea27c91190f6205defa1f5a3641a0e0f56.tar.xz
nova-91e96cea27c91190f6205defa1f5a3641a0e0f56.zip
add migration for proper name
Diffstat (limited to 'nova/api/openstack/auth.py')
-rw-r--r--nova/api/openstack/auth.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/nova/api/openstack/auth.py b/nova/api/openstack/auth.py
index 7ccd46f54..6c6ee22a2 100644
--- a/nova/api/openstack/auth.py
+++ b/nova/api/openstack/auth.py
@@ -100,10 +100,8 @@ class AuthMiddleware(wsgi.Middleware):
if user and token:
res = webob.Response()
res.headers['X-Auth-Token'] = token['token_hash']
- # NOTE(vish): the apparrent typo in manageent is actually how it
- # is in the db
res.headers['X-Server-Management-Url'] = \
- token['server_manageent_url']
+ token['server_management_url']
res.headers['X-Storage-Url'] = token['storage_url']
res.headers['X-CDN-Management-Url'] = token['cdn_management_url']
res.content_type = 'text/plain'
@@ -158,7 +156,7 @@ class AuthMiddleware(wsgi.Middleware):
token_dict['token_hash'] = token_hash
token_dict['cdn_management_url'] = ''
os_url = req.url
- token_dict['server_manageent_url'] = os_url
+ token_dict['server_management_url'] = os_url
token_dict['storage_url'] = ''
token_dict['user_id'] = user.id
token = self.db.auth_token_create(ctxt, token_dict)