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

Change-Id: I688145f7ea942277c7d3ed3221d6ff2bc7a852ad
Closes-Bug: #1283872

cinder/wsgi.py

index 168a1a1f04b826866cd8415837a80815af0b9d82..3d6f0b80c77c7faab6e2e6b46748369c022c4e07 100644 (file)
@@ -296,7 +296,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)