From cd12d8a917ee744c85b37f9d4ee5527899e53779 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 2 Apr 2014 15:59:05 -0700 Subject: [PATCH] Fix _parse_value always returning 0 when not true, false or None. --- library/system/sysctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/sysctl b/library/system/sysctl index be379798252..ab1da5e0959 100644 --- a/library/system/sysctl +++ b/library/system/sysctl @@ -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()