This code is working with config option names, not config-key keys.
Signed-off-by: Sage Weil <sage@newdream.net>
bool ActivePyModules::get_config(const std::string &module_name,
const std::string &key, std::string *val) const
{
- const std::string global_key = PyModule::config_prefix
- + module_name + "/" + key;
+ const std::string global_key = "mgr/" + module_name + "/" + key;
dout(20) << " key: " << global_key << dendl;
const std::string &module_name,
const std::string &key, const boost::optional<std::string>& val)
{
- const std::string global_key = PyModule::config_prefix
- + module_name + "/" + key;
+ const std::string global_key = "mgr/" + module_name + "/" + key;
Command set_cmd;
{
std::ostringstream cmd_json;
bool StandbyPyModule::get_config(const std::string &key,
std::string *value) const
{
- const std::string global_key = PyModule::config_prefix
- + get_name() + "/" + key;
+ const std::string global_key = "mgr/" + get_name() + "/" + key;
dout(4) << __func__ << " key: " << global_key << dendl;