diff options
Diffstat (limited to 'src/pybind/ceph_rest_api.py')
-rwxr-xr-x | src/pybind/ceph_rest_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pybind/ceph_rest_api.py b/src/pybind/ceph_rest_api.py index 6165d31f9b9..f69f1809d61 100755 --- a/src/pybind/ceph_rest_api.py +++ b/src/pybind/ceph_rest_api.py @@ -322,6 +322,9 @@ def make_response(fmt, output, statusmsg, errorcode): {1} </status> </response>'''.format(response, xml.sax.saxutils.escape(statusmsg)) + else: + if 200 <= errorcode < 300: + response = response + '\n' + statusmsg + '\n' return flask.make_response(response, errorcode) |