Signed-off-by: Sage Weil <sage@redhat.com>
return false;
}
+static string indent_who(const string& who)
+{
+ if (who == "global") {
+ return who;
+ }
+ if (who.find('.') == string::npos) {
+ return " " + who;
+ }
+ return " " + who;
+}
+
bool ConfigMonitor::preprocess_command(MonOpRequestRef op)
{
MMonCommand *m = static_cast<MMonCommand*>(op->get_req());
for (auto s : sections) {
for (auto& i : s.second->options) {
if (!f) {
- tbl << s.first;
+ tbl << indent_who(s.first);
tbl << i.second.mask.to_str();
tbl << Option::level_to_str(i.second.opt->level);
tbl << i.first;