]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: remove double-nesting of "osdmap" for ceph status
authorSage Weil <sage@redhat.com>
Mon, 5 Aug 2019 14:21:20 +0000 (09:21 -0500)
committerSage Weil <sage@redhat.com>
Mon, 5 Aug 2019 14:21:20 +0000 (09:21 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSDMap.cc

index a6910a50a56c8ff921b2f6e1306971fc32a64b11..6e6732cb4e2c01072d975300d1644737b39de39f 100644 (file)
@@ -3965,7 +3965,6 @@ void OSDMap::print_summary(Formatter *f, ostream& out,
                           const string& prefix, bool extra) const
 {
   if (f) {
-    f->open_object_section("osdmap");
     f->dump_int("epoch", get_epoch());
     f->dump_int("num_osds", get_num_osds());
     f->dump_int("num_up_osds", get_num_up_osds());
@@ -3973,7 +3972,6 @@ void OSDMap::print_summary(Formatter *f, ostream& out,
     f->dump_bool("full", test_flag(CEPH_OSDMAP_FULL) ? true : false);
     f->dump_bool("nearfull", test_flag(CEPH_OSDMAP_NEARFULL) ? true : false);
     f->dump_unsigned("num_remapped_pgs", get_num_pg_temp());
-    f->close_section();
   } else {
     utime_t now = ceph_clock_now();
     out << get_num_osds() << " osds: "