From: KIYOHIRO ADACHI Date: Thu, 26 Dec 2013 07:09:01 +0000 (+0900) Subject: Fix the invalid argument of webob.exc.HTTPBadRequest X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=534ce5dde117a61abbab49e8b1bc34b5fcbfc095;p=openstack-build%2Fcinder-build.git Fix the invalid argument of webob.exc.HTTPBadRequest webob.exc.HTTPBadRequest() does not have a parameter 'reason'. Change-Id: I65103ce72849e921150c4d098993fa523f53fe3a Closes-Bug: #1264223 --- diff --git a/cinder/api/contrib/scheduler_hints.py b/cinder/api/contrib/scheduler_hints.py index fca342220..b01601f1e 100644 --- a/cinder/api/contrib/scheduler_hints.py +++ b/cinder/api/contrib/scheduler_hints.py @@ -34,7 +34,7 @@ class SchedulerHintsController(wsgi.Controller): hints.update(body[attr]) except ValueError: msg = _("Malformed scheduler_hints attribute") - raise webob.exc.HTTPBadRequest(reason=msg) + raise webob.exc.HTTPBadRequest(explanation=msg) return hints