]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix the invalid argument of webob.exc.HTTPBadRequest
authorKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Thu, 26 Dec 2013 07:09:01 +0000 (16:09 +0900)
committerKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Tue, 7 Jan 2014 01:30:26 +0000 (10:30 +0900)
webob.exc.HTTPBadRequest() does not have a parameter 'reason'.

Change-Id: I65103ce72849e921150c4d098993fa523f53fe3a
Closes-Bug: #1264223

cinder/api/contrib/scheduler_hints.py

index fca3422203c1cad46aa8a8315f6693ff1d01704a..b01601f1e5ad7f26c6431adf5d875f0d767ba3f5 100644 (file)
@@ -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