By convention dump() does not include the containing object section.
Signed-off-by: Sage Weil <sage@redhat.com>
msg << "Setting not found: '" << key << "'";
f->dump_string("error", msg.str());
} else {
- i->second.dump(f);
+ f->dump_object("option", i->second);
}
} else {
// Output all
f->open_array_section("options");
for (const auto &option : ceph_options) {
- option.dump(f);
+ f->dump_object("option", option);
}
f->close_section();
}
void Option::dump(Formatter *f) const
{
- f->open_object_section("option");
f->dump_string("name", name);
f->dump_string("type", type_to_str(type));
dump_value("min", min, f);
dump_value("max", max, f);
-
- f->close_section();
}
ostream& operator<<(ostream& out, const Option::value_t& v)