Commit 2fd6d16f by Michael DeHaan

Merge pull request #6831 from aresch/patch-1

Fix _parse_value always returning 0 when not true, false or None.
parents 7db7e86d cd12d8a9
......@@ -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()
......
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