]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: fix structure of 'features' command
authorSage Weil <sage@redhat.com>
Thu, 25 Jan 2018 07:32:45 +0000 (01:32 -0600)
committerSage Weil <sage@redhat.com>
Thu, 25 Jan 2018 07:32:45 +0000 (01:32 -0600)
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 <sage@redhat.com>
src/mon/mon_types.h

index bbb1f3e60c1ab967dd7ba7eeead78e05522ee5e9..97eab1b80a2b59dbc4c964110b0d39f6238a71ab 100644 (file)
@@ -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;