From 198786c4bd0f4bc75574b6d92eec6105519ca840 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Sat, 16 Mar 2024 16:41:10 +0100 Subject: [PATCH] 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 --- library/ceph_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ceph_config.py b/library/ceph_config.py index 1bd1d73875..5ae6b73d9a 100644 --- a/library/ceph_config.py +++ b/library/ceph_config.py @@ -165,7 +165,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)