mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #6831 from aresch/patch-1
Fix _parse_value always returning 0 when not true, false or None.
This commit is contained in:
@@ -187,7 +187,7 @@ class SysctlModule(object):
|
||||
return ''
|
||||
elif value.lower() in BOOLEANS_TRUE:
|
||||
return '1'
|
||||
elif not value.lower() in BOOLEANS_FALSE:
|
||||
elif value.lower() in BOOLEANS_FALSE:
|
||||
return '0'
|
||||
else:
|
||||
return value.strip()
|
||||
|
||||
Reference in New Issue
Block a user