From: Seena Fallah Date: Sat, 16 Mar 2024 15:41:10 +0000 (+0100) Subject: ceph_config: compare current vals in low X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=127dab7487c867cce15744b5956a614c2e1a1251;p=ceph-ansible.git ceph_config: compare current vals in low Check the current value and asked both in low case as the asked one might be in capital as it should be. Signed-off-by: Seena Fallah (cherry picked from commit ed4b6e71b3b832848e326ccafd9ba4fb036a5f8c) --- diff --git a/library/ceph_config.py b/library/ceph_config.py index 3557b34da..c82c8cf57 100644 --- a/library/ceph_config.py +++ b/library/ceph_config.py @@ -183,7 +183,7 @@ def main() -> None: current_value = get_current_value(who, option, config_dump) if action == 'set': - if value.lower() == current_value: + if current_value and value.lower() == current_value.lower(): out = 'who={} option={} value={} already set. Skipping.'.format(who, option, value) else: rc, cmd, out, err = set_option(module, who, option, value, container_image=container_image)