From: Sage Weil Date: Thu, 25 Jan 2018 07:32:45 +0000 (-0600) Subject: mon: fix structure of 'features' command X-Git-Tag: v13.0.2~429^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20115%2Fhead;p=ceph.git mon: fix structure of 'features' command We are dumping an array of objects all called "group"--we need an array here, not an object (dict) section. Signed-off-by: Sage Weil --- diff --git a/src/mon/mon_types.h b/src/mon/mon_types.h index bbb1f3e60c1a..97eab1b80a2b 100644 --- a/src/mon/mon_types.h +++ b/src/mon/mon_types.h @@ -104,7 +104,7 @@ struct FeatureMap { void dump(Formatter *f) const { for (auto& p : m) { - f->open_object_section(ceph_entity_type_name(p.first)); + f->open_array_section(ceph_entity_type_name(p.first)); for (auto& q : p.second) { f->open_object_section("group"); std::stringstream ss;