]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/*: fix config_notify handling of default values 34178/head
authorNathan Cutler <ncutler@suse.com>
Mon, 23 Mar 2020 14:41:16 +0000 (15:41 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 25 Mar 2020 14:43:13 +0000 (15:43 +0100)
commitba93ac487d3f06d193e41873d604814da674097e
tree60c5a5903256713447c60d9a558ed4aa5b60057c
parent53037187c4d88fa287de14ecc0f2bf460682cfb9
pybind/mgr/*: fix config_notify handling of default values

After 5ace82e65c72847fb875fc01c419937a26a59d70 was merged, I found
three more instances of the code being patched.

The commit message of 5ace82e65c72847fb875fc01c419937a26a59d70 was/is:

"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."

Fixes: 5ace82e65c72847fb875fc01c419937a26a59d70
Fixes: https://tracker.ceph.com/issues/43746
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 30585f44de6147c824ed2df1a477ad17f7b51fff)
src/pybind/mgr/diskprediction_cloud/module.py
src/pybind/mgr/diskprediction_local/module.py
src/pybind/mgr/osd_support/module.py