Fix _parse_value always returning 0 when not true, false or None.
This commit is contained in:
parent
5a075e3b93
commit
cd12d8a917
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue