From: Sage Weil Date: Tue, 16 Feb 2021 23:24:20 +0000 (-0500) Subject: mgr/MgrStandby: simplify weird code X-Git-Tag: v17.1.0~2900^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=95f80dda9dae788aefb4a1f2a85d55405f3f1cb5;p=ceph.git mgr/MgrStandby: simplify weird code PyModule::config_prefix is "mgr/", so this has no effect. Signed-off-by: Sage Weil --- diff --git a/src/mgr/MgrStandby.cc b/src/mgr/MgrStandby.cc index dd3181484551..585837802f50 100644 --- a/src/mgr/MgrStandby.cc +++ b/src/mgr/MgrStandby.cc @@ -137,9 +137,7 @@ int MgrStandby::init() // dout(10) << "config_callback: " << k << " : " << v << dendl; dout(10) << "config_callback: " << k << " : " << dendl; if (k.substr(0, 4) == "mgr/") { - const std::string global_key = PyModule::config_prefix + k.substr(4); - py_module_registry.handle_config(global_key, v); - + py_module_registry.handle_config(k, v); return true; } return false;