Commit 3e9b63fe by James Cammarata

Compare exploded values in the sysctl module to avoid whitespace errors

Fixes #3931
parent b2741f45
......@@ -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, ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment