From 21097f67eb29192684be4462d5a07946034e6e7b Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Mon, 5 Aug 2013 13:57:56 -0700 Subject: [PATCH] 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 --- neutron/agent/metadata/agent.py | 2 +- neutron/agent/metadata/namespace_proxy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/agent/metadata/agent.py b/neutron/agent/metadata/agent.py index 9f32d15508..3ca20382f7 100644 --- a/neutron/agent/metadata/agent.py +++ b/neutron/agent/metadata/agent.py @@ -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) diff --git a/neutron/agent/metadata/namespace_proxy.py b/neutron/agent/metadata/namespace_proxy.py index bca06b400a..06a3a56f98 100644 --- a/neutron/agent/metadata/namespace_proxy.py +++ b/neutron/agent/metadata/namespace_proxy.py @@ -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: