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 <seenafallah@gmail.com>
pull/7523/head
Seena Fallah 2024-03-16 16:41:10 +01:00 committed by Guillaume Abrioux
parent fa2eb2532e
commit ed4b6e71b3
1 changed files with 1 additions and 1 deletions

View File

@ -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)