From: Haiwei Xu Date: Mon, 24 Feb 2014 11:39:19 +0000 (+0900) Subject: Fix webob.exc.HTTPForbidden parameter miss X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=330a476f8a82c672d636d7da78b81cc46db1e9dd;p=openstack-build%2Fcinder-build.git Fix webob.exc.HTTPForbidden parameter miss HTTPForbidden should use the parameter 'explanation' instead of 'detail'. This patch fixes this bug. Change-Id: I688145f7ea942277c7d3ed3221d6ff2bc7a852ad Closes-Bug: #1283872 --- diff --git a/cinder/wsgi.py b/cinder/wsgi.py index 168a1a1f0..3d6f0b80c 100644 --- a/cinder/wsgi.py +++ b/cinder/wsgi.py @@ -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)