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

reviewable/pr18780/r1
Andrew Resch 11 years ago
parent 5826e1354a
commit 32e5383bef

@ -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()

Loading…
Cancel
Save