From 21a3955e7f22a4ff677890a3fdd60c022b347e20 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 25 Jan 2018 01:32:45 -0600 Subject: [PATCH] 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 --- src/mon/mon_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/mon_types.h b/src/mon/mon_types.h index bbb1f3e60c1..97eab1b80a2 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; -- 2.39.5