From c2b0c67f1782fc3e29c0d3184c84c44bcd4566b9 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 9 Feb 2021 19:12:57 +0800 Subject: [PATCH] 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 --- src/mon/Monitor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index c58e6e528a4..7b57cb0f9cb 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); } -- 2.47.3