]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/*: fix config_notify handling of default values 32755/head
authorSage Weil <sage@redhat.com>
Tue, 21 Jan 2020 16:43:04 +0000 (10:43 -0600)
committerSage Weil <sage@redhat.com>
Tue, 21 Jan 2020 16:44:45 +0000 (10:44 -0600)
commit5ace82e65c72847fb875fc01c419937a26a59d70
treeb7f24098a2a4da62d72e84127cc73623b603a480
parent05adb6474ae1ee8578eaf7e598ae5d57739c89b8
pybind/mgr/*: fix config_notify handling of default values

The default values are handled by mgr_module.py's _get_module_option();
the or here means that we break any non-true (0, false, none) value and
override it with the default.

https://tracker.ceph.com/issues/43746
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/alerts/module.py
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/crash/module.py
src/pybind/mgr/diskprediction_cloud/module.py
src/pybind/mgr/diskprediction_local/module.py
src/pybind/mgr/hello/module.py
src/pybind/mgr/k8sevents/module.py
src/pybind/mgr/pg_autoscaler/module.py