summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2010-12-28 23:09:18 +0000
committerTarmac <>2010-12-28 23:09:18 +0000
commitb7b2760cd7cf74fde8ff48bbfefe64c53c3d149c (patch)
tree4c196b1939cc48dd809f782951f036d12fa9a7e6
parentabc05ff27a61e0ad2ceb11269c22261a841b3d1a (diff)
parent8ee15b6e93b5666b4645f2cefef357b0af3d26d0 (diff)
downloadnova-b7b2760cd7cf74fde8ff48bbfefe64c53c3d149c.tar.gz
nova-b7b2760cd7cf74fde8ff48bbfefe64c53c3d149c.tar.xz
nova-b7b2760cd7cf74fde8ff48bbfefe64c53c3d149c.zip
Address bug #695157 by using a blank request class and setting an empty request path.
This fixes the test suite in environments with webob >= 1.0 (e.g. Ubuntu Natty). (Thanks for Greg Holt for the suggestion)
-rw-r--r--nova/wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py
index c7ee9ed14..b5d6b96c1 100644
--- a/nova/wsgi.py
+++ b/nova/wsgi.py
@@ -270,7 +270,7 @@ class Serializer(object):
needed to serialize a dictionary to that type.
"""
self.metadata = metadata or {}
- req = webob.Request(environ)
+ req = webob.Request.blank('', environ)
suffix = req.path_info.split('.')[-1].lower()
if suffix == 'json':
self.handler = self._to_json