]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/MgrStandby: simplify weird code
authorSage Weil <sage@newdream.net>
Tue, 16 Feb 2021 23:24:20 +0000 (18:24 -0500)
committerSage Weil <sage@newdream.net>
Sun, 21 Feb 2021 13:53:17 +0000 (07:53 -0600)
PyModule::config_prefix is "mgr/", so this has no effect.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 95f80dda9dae788aefb4a1f2a85d55405f3f1cb5)

src/mgr/MgrStandby.cc

index dd31814845510b4834ed7d974d5fc65c5bf30dbd..585837802f501f6dbe7e97831c0a5d38b7983e88 100644 (file)
@@ -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;