mirror of https://github.com/ceph/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 <seenafallah@gmail.com>pull/7523/head
parent
fa2eb2532e
commit
ed4b6e71b3
|
@ -183,7 +183,7 @@ def main() -> None:
|
||||||
current_value = get_current_value(who, option, config_dump)
|
current_value = get_current_value(who, option, config_dump)
|
||||||
|
|
||||||
if action == 'set':
|
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)
|
out = 'who={} option={} value={} already set. Skipping.'.format(who, option, value)
|
||||||
else:
|
else:
|
||||||
rc, cmd, out, err = set_option(module, who, option, value, container_image=container_image)
|
rc, cmd, out, err = set_option(module, who, option, value, container_image=container_image)
|
||||||
|
|
Loading…
Reference in New Issue