Change decorator to webob as doesn't need to be wsgi

This patch changes the decorates in the metadata agents to webob.Request
as they don't need to go through wsgi. Note: wsgi.Request's base class
is webob.Request.

Fixes bug: 1208907

Change-Id: I069635eb67812136d314fc260cebf65886a95597
This commit is contained in:
Aaron Rosen 2013-08-05 13:57:56 -07:00
parent 23ac6df865
commit 21097f67eb
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class MetadataProxyHandler(object):
)
return qclient
@webob.dec.wsgify(RequestClass=wsgi.Request)
@webob.dec.wsgify(RequestClass=webob.Request)
def __call__(self, req):
try:
LOG.debug(_("Request: %s"), req)

View File

@ -70,7 +70,7 @@ class NetworkMetadataProxyHandler(object):
msg = _('network_id and router_id are None. One must be provided.')
raise ValueError(msg)
@webob.dec.wsgify(RequestClass=wsgi.Request)
@webob.dec.wsgify(RequestClass=webob.Request)
def __call__(self, req):
LOG.debug(_("Request: %s"), req)
try: