Fix the invalid argument of webob.exc.HTTPBadRequest
webob.exc.HTTPBadRequest() does not have a parameter 'reason'. Change-Id: I65103ce72849e921150c4d098993fa523f53fe3a Closes-Bug: #1264223
This commit is contained in:
parent
24d7e24413
commit
534ce5dde1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue