Commit cd12d8a9 by Andrew Resch

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

parent 5a075e3b
...@@ -187,7 +187,7 @@ class SysctlModule(object): ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment