MCPcopy Create free account
hub / github.com/ceph/ceph / handle_config

Method handle_config

src/mgr/PyModuleRegistry.cc:491–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void PyModuleRegistry::handle_config(const std::string &k, const std::string &v)
492{
493 std::lock_guard l(module_config.lock);
494
495 if (!v.empty()) {
496 // removing value to hide sensitive data going into mgr logs
497 // leaving this for debugging purposes
498 // dout(10) << "Loaded module_config entry " << k << ":" << v << dendl;
499 dout(10) << "Loaded module_config entry " << k << ":" << dendl;
500 module_config.config[k] = v;
501 } else {
502 module_config.config.erase(k);
503 }
504}
505
506void PyModuleRegistry::handle_config_notify()
507{

Callers 1

initMethod · 0.45

Calls 2

emptyMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected