From: Kefu Chai Date: Tue, 9 Feb 2021 11:12:57 +0000 (+0800) Subject: mon/Monitor: add newline at end of output "ceph health -f json" X-Git-Tag: v17.1.0~2943^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2b0c67f1782fc3e29c0d3184c84c44bcd4566b9;p=ceph.git mon/Monitor: add newline at end of output "ceph health -f json" otherwise the output would be cluttered with the shell prompt. Signed-off-by: Kefu Chai --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index c58e6e528a43..7b57cb0f9cb5 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3621,7 +3621,8 @@ void Monitor::handle_command(MonOpRequestRef op) string plain; healthmon()->get_health_status(detail == "detail", f.get(), f ? nullptr : &plain); if (f) { - f->flush(rdata); + f->flush(ds); + rdata.append(ds); } else { rdata.append(plain); }