]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
MgrStatMonitor: fix formatting of pending_digest 20426/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 13 Feb 2018 18:22:01 +0000 (10:22 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 13 Feb 2018 18:22:01 +0000 (10:22 -0800)
Fixes: http://tracker.ceph.com/issues/22991
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mon/MgrStatMonitor.cc

index 8df859c899824880b1b81d4a9b5049b259116628..efc16671c43438a46a3804a997629241aa13aae2 100644 (file)
@@ -190,7 +190,9 @@ bool MgrStatMonitor::prepare_report(MonOpRequestRef op)
           << pending_health_checks.checks.size() << " health checks" << dendl;
   dout(20) << "pending_digest:\n";
   JSONFormatter jf(true);
+  jf.open_object_section("pending_digest");
   pending_digest.dump(&jf);
+  jf.close_section();
   jf.flush(*_dout);
   *_dout << dendl;
   return true;