]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor: add newline at end of output "ceph health -f json" 39374/head
authorKefu Chai <kchai@redhat.com>
Tue, 9 Feb 2021 11:12:57 +0000 (19:12 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Feb 2021 11:15:22 +0000 (19:15 +0800)
otherwise the output would be cluttered with the shell prompt.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/Monitor.cc

index c58e6e528a4376e8aede699a2e08776524748bda..7b57cb0f9cb58fa12bc708954503c088c8fdeba5 100644 (file)
@@ -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);
       }