]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_rest_api.py: return error in nonformatted mode
authorDan Mick <dan.mick@inktank.com>
Fri, 26 Jul 2013 02:40:26 +0000 (19:40 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 26 Jul 2013 03:03:22 +0000 (20:03 -0700)
commitfbf74d987d22dcca832a8afd358e0d76d4442f4c
treefa86a014b6b67f038bfe6139206d82f148e87159
parent8b3d7a1b5ef8d6e8ae1a1f6cfb99463afd5e0bb2
ceph_rest_api.py: return error in nonformatted mode

When a nonformatted request is made, currently the only text in the
response is the (probably empty) response buffer.  Add the statusmsg
as well, where the error is likely to be explained.  This lets
the http client get a clue what happened.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/pybind/ceph_rest_api.py