]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/mgr/restful: return 400 on bad request
authorKefu Chai <kchai@redhat.com>
Thu, 15 Jun 2017 02:14:59 +0000 (10:14 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Jun 2017 07:09:27 +0000 (15:09 +0800)
commit9673f95f8d02694a77373ad3ff953755711a601a
tree3b517cb2079ba34e446358bd695f626e5b432007
parent3ebb9c12b8a52a91d8b9b536998498fc85d9aff3
pybind/mgr/restful: return 400 on bad request

we should return 500 on that case. it's the client's fault not feeding us
with expected requests.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/restful/api/pool.py