Fix issue with sysctl parameter parsing introduced by 0e8c7b1

Fixes #6806
reviewable/pr18780/r1
James Cammarata 11 years ago
parent 05551cfe51
commit 57adad7097

@ -185,9 +185,9 @@ class SysctlModule(object):
def _parse_value(self, value):
if value is None:
return ''
elif value.lower():
elif value.lower() in BOOLEANS_TRUE:
return '1'
elif not value.lower():
elif not value.lower() in BOOLEANS_FALSE:
return '0'
else:
return value.strip()

Loading…
Cancel
Save