]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/DataHealthService: do not name xml key after mon
authorSage Weil <sage@inktank.com>
Sun, 28 Jul 2013 15:19:12 +0000 (08:19 -0700)
committerSage Weil <sage@inktank.com>
Sun, 28 Jul 2013 15:19:12 +0000 (08:19 -0700)
The name might be something like '0', which is illegal.  This should be
the *type*, not name.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/DataHealthService.cc

index a55e8c392e22e42c6c12a36c188dfcb1f96faca7..6e8aa313a3616404355ee227921d333fd5624bc9 100644 (file)
@@ -93,7 +93,7 @@ health_status_t DataHealthService::get_health(
     }
 
     if (f) {
-      f->open_object_section(mon_name.c_str());
+      f->open_object_section("mon");
       f->dump_string("name", mon_name.c_str());
       f->dump_int("kb_total", stats.kb_total);
       f->dump_int("kb_used", stats.kb_used);