1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix _parse_value always returning 0 when not true, false or None.

This commit is contained in:
Andrew Resch 2014-04-02 15:59:05 -07:00
parent 5a075e3b93
commit cd12d8a917

View file

@ -187,7 +187,7 @@ class SysctlModule(object):
return '' return ''
elif value.lower() in BOOLEANS_TRUE: elif value.lower() in BOOLEANS_TRUE:
return '1' return '1'
elif not value.lower() in BOOLEANS_FALSE: elif value.lower() in BOOLEANS_FALSE:
return '0' return '0'
else: else:
return value.strip() return value.strip()