summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/pybind/ceph_rest_api.py3
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)