From: Sage Weil Date: Fri, 2 Jun 2017 13:50:18 +0000 (-0400) Subject: mgr/PyModules: prefix by mgr/, not mgr/$id/ X-Git-Tag: v12.1.0~213^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b5994f3ee07b9ce4c881f6e4be54d907b5665d82;p=ceph.git mgr/PyModules: prefix by mgr/, not mgr/$id/ If modules want per-instance state, they can include the mgr id in their portion of the key name. Signed-off-by: Sage Weil --- diff --git a/src/mgr/PyModules.cc b/src/mgr/PyModules.cc index b9596bb5f972..3b3962241d94 100644 --- a/src/mgr/PyModules.cc +++ b/src/mgr/PyModules.cc @@ -338,9 +338,8 @@ int PyModules::init() Mutex::Locker locker(lock); global_handle = this; - // namespace in config-key prefixed by "mgr//" - config_prefix = std::string(g_conf->name.get_type_str()) + "/" + - g_conf->name.get_id() + "/"; + // namespace in config-key prefixed by "mgr/" + config_prefix = std::string(g_conf->name.get_type_str()) + "/"; // Set up global python interpreter Py_SetProgramName(const_cast(PYTHON_EXECUTABLE));