From 534ce5dde117a61abbab49e8b1bc34b5fcbfc095 Mon Sep 17 00:00:00 2001 From: KIYOHIRO ADACHI Date: Thu, 26 Dec 2013 16:09:01 +0900 Subject: [PATCH] Fix the invalid argument of webob.exc.HTTPBadRequest webob.exc.HTTPBadRequest() does not have a parameter 'reason'. Change-Id: I65103ce72849e921150c4d098993fa523f53fe3a Closes-Bug: #1264223 --- cinder/api/contrib/scheduler_hints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2