]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix webob.exc.HTTPForbidden parameter miss
authorHaiwei Xu <xu-haiwei@mxw.nes.nec.co.jp>
Mon, 24 Feb 2014 13:12:59 +0000 (22:12 +0900)
committerHaiwei Xu <xu-haiwei@mxw.nes.nec.co.jp>
Mon, 24 Feb 2014 13:15:41 +0000 (22:15 +0900)
HTTPForbidden should use the parameter 'explanation'
instead of 'detail'.
This patch fixes this bug.

Change-Id: I4c66697daf0ce9e00c8820311dc7141eacd7e733
Closes-Bug: #1283872

neutron/wsgi.py

index 9d9ff7b90ef823b29403c3fdbdef848602c27182..0eef564ddbae0a28ea634d8e832117ecb1655c8a 100644 (file)
@@ -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)