]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/*: fix config_notify handling of default values
authorSage Weil <sage@redhat.com>
Tue, 21 Jan 2020 16:43:04 +0000 (10:43 -0600)
committerNathan Cutler <ncutler@suse.com>
Mon, 23 Mar 2020 14:26:51 +0000 (15:26 +0100)
commitebdc3121d0f3ceded8fa2974e0a1950b7226d0c7
tree1c118e62a070d40c919700bd8ed71eda2d346af0
parent575a6f31621b64baa9aeef8e8dc462525224be20
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>
(cherry picked from commit 5ace82e65c72847fb875fc01c419937a26a59d70)

Conflicts:
src/pybind/mgr/cephadm/module.py
- nautilus has no "cephadm" module. It does have an "orchestrator_cli"
  module but it doesn't contain the code being patched
src/pybind/mgr/hello/module.py
- nautilus has a "hello" module, but it doesn't contain the code being
  patched
src/pybind/mgr/alerts/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/k8sevents/module.py
src/pybind/mgr/pg_autoscaler/module.py