diff options
author | Zhongyue Luo <lzyeval@gmail.com> | 2012-02-10 16:51:54 +0800 |
---|---|---|
committer | Zhongyue Luo <lzyeval@gmail.com> | 2012-02-20 20:17:18 +0800 |
commit | ade948dd77139390dc03f62564b0050df3ef54f3 (patch) | |
tree | 7f83e95960b3d3ef8056d4ed420a2b307b0ea2e1 /nova/api/openstack/auth.py | |
parent | 9a174189b42fc59de9467f60eb6ca0ba4d80f6c8 (diff) | |
download | nova-ade948dd77139390dc03f62564b0050df3ef54f3.tar.gz nova-ade948dd77139390dc03f62564b0050df3ef54f3.tar.xz nova-ade948dd77139390dc03f62564b0050df3ef54f3.zip |
Backslash continuations (nova.api.openstack)
Fixes bug #925286
Backslash continuations removal for package nova.api.openstack
Change-Id: I204b6d53bea224859e23771d5f4c96c1aff6fd03
Diffstat (limited to 'nova/api/openstack/auth.py')
-rw-r--r-- | nova/api/openstack/auth.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/nova/api/openstack/auth.py b/nova/api/openstack/auth.py index c404c72af..c59d2a315 100644 --- a/nova/api/openstack/auth.py +++ b/nova/api/openstack/auth.py @@ -173,15 +173,19 @@ class AuthMiddleware(base_wsgi.Middleware): if user and token: res = webob.Response() res.headers['X-Auth-Token'] = token['token_hash'] - res.headers['X-Server-Management-Url'] = \ - token['server_management_url'] + _x_server_url = 'X-Server-Management-Url' + _server_url = 'server_management_url' + res.headers[_x_server_url] = token[_server_url] if token['storage_url']: - res.headers['X-Storage-Url'] = token['storage_url'] + _x_storage_url = 'X-Storage-Url' + _storage_url = 'storage_url' + res.headers[_x_storage_url] = token[_storage_url] if token['cdn_management_url']: - res.headers['X-CDN-Management-Url'] = \ - token['cdn_management_url'] + _x_cdn_url = 'X-CDN-Management-Url' + _cdn_url = 'cdn_management_url' + res.headers[_x_cdn_url] = token[_cdn_url] res.content_type = 'text/plain' res.status = '204' |