From 3e9b63febd86cbb083e334f8d659a5e0750e3d61 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 10 Sep 2013 23:24:24 -0500 Subject: [PATCH] Compare exploded values in the sysctl module to avoid whitespace errors Fixes #3931 --- library/system/sysctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/sysctl b/library/system/sysctl index 9ecd71565c..d8e0ffc303 100644 --- a/library/system/sysctl +++ b/library/system/sysctl @@ -195,7 +195,7 @@ def sysctl_check(current_step, **sysctl_args): output = re.sub('(\s+)', ' ', output) # normal case, finded value must be equal to the submitted value : - if output != sysctl_args['value']: + if output.split() != sysctl_args['value'].split(): return 1, 'key seems not set to value even after update/sysctl, founded : <%s>, wanted : <%s>' % (output, sysctl_args['value']) return 0, ''