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:
parent
23ac6df865
commit
21097f67eb
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user