From dbdc379932250f88821cf06aeac2b05e9b4ad74d Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Mon, 24 Feb 2014 22:12:59 +0900 Subject: [PATCH] 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 --- neutron/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/wsgi.py b/neutron/wsgi.py index 9d9ff7b90e..0eef564ddb 100644 --- a/neutron/wsgi.py +++ b/neutron/wsgi.py @@ -907,7 +907,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)