mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Fix issue with sysctl parameter parsing introduced by 0e8c7b1
Fixes #6806
This commit is contained in:
parent
71061479a0
commit
eb15d2f6fe
1 changed files with 2 additions and 2 deletions
|
@ -185,9 +185,9 @@ class SysctlModule(object):
|
||||||
def _parse_value(self, value):
|
def _parse_value(self, value):
|
||||||
if value is None:
|
if value is None:
|
||||||
return ''
|
return ''
|
||||||
elif value.lower():
|
elif value.lower() in BOOLEANS_TRUE:
|
||||||
return '1'
|
return '1'
|
||||||
elif not value.lower():
|
elif not value.lower() in BOOLEANS_FALSE:
|
||||||
return '0'
|
return '0'
|
||||||
else:
|
else:
|
||||||
return value.strip()
|
return value.strip()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue