From: Haiwei Xu Date: Mon, 24 Feb 2014 13:12:59 +0000 (+0900) Subject: Fix webob.exc.HTTPForbidden parameter miss X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d30f24bea4672b27b69192292e74b308db8777e9;p=openstack-build%2Fneutron-build.git Fix webob.exc.HTTPForbidden parameter miss HTTPForbidden should use the parameter 'explanation' instead of 'detail'. This patch fixes this bug. Change-Id: I4c66697daf0ce9e00c8820311dc7141eacd7e733 Closes-Bug: #1283872 --- diff --git a/neutron/wsgi.py b/neutron/wsgi.py index 9cae97300..5cd6fab3c 100644 --- a/neutron/wsgi.py +++ b/neutron/wsgi.py @@ -906,7 +906,7 @@ class Application(object): res = 'message\n' # Option 2: a nicely formatted HTTP exception page - res = exc.HTTPForbidden(detail='Nice try') + res = exc.HTTPForbidden(explanation='Nice try') # Option 3: a webob Response object (in case you need to play with # headers, or you want to be treated like an iterable, or or or)