From 0ad029f2ea28022865b38f3dcdc5cc1c6f7ecbe9 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 7 Mar 2018 16:04:01 +0100 Subject: [PATCH] common/config: Fix dumping of `md_config_t::config_options`. Caused by 49a5e775aa92a8218bb659909de20637d5aa660a This fixes the dashboard_v2 `cluster_conf` endpoint. Fixes: http://tracker.ceph.com/issues/23265 Signed-off-by: Sebastian Wagner --- src/common/config.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/config.cc b/src/common/config.cc index a1f0fbdbf2e..080e0a9840c 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -502,8 +502,7 @@ void md_config_t::config_options(Formatter *f) Mutex::Locker l(lock); f->open_array_section("options"); for (const auto& i: schema) { - const Option &opt = i.second; - opt.dump(f); + f->dump_object("option", i.second); } f->close_section(); } -- 2.39.5