Actions
Bug #42958
closedmgr/PyModule.cc: set_config with an empty value doesn't remove the config option
% Done:
0%
Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Description
PyModuleConfig::set_config() is meant to set a configuration option if a value is provided, and remove the option if no value is passed. The setting part works fine, the removing part, not so much. For example, if you run `ceph orchestrator set backend ''`
to unset the orchestrator backend, the mgr/orchestrator_cli/orchestrator config option remains present, and the mgr log says:
2019-11-22T04:18:55.840+0100 7f2807c67700 0 mgr[py] `config set mgrmgr/orchestrator_cli/orchestrator --` failed: (22) Invalid argument 2019-11-22T04:18:55.840+0100 7f2807c67700 0 mgr[py] mon returned -22: unrecognized config target ''
Actions