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>
(cherry picked from commit
ed4b6e71b3b832848e326ccafd9ba4fb036a5f8c)
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)