Compare exploded values in the sysctl module to avoid whitespace errors
Fixes #3931
This commit is contained in:
parent
5fe192e5e7
commit
8d6e302cf8
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ def sysctl_check(current_step, **sysctl_args):
|
||||||
output = re.sub('(\s+)', ' ', output)
|
output = re.sub('(\s+)', ' ', output)
|
||||||
|
|
||||||
# normal case, finded value must be equal to the submitted value :
|
# 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 1, 'key seems not set to value even after update/sysctl, founded : <%s>, wanted : <%s>' % (output, sysctl_args['value'])
|
||||||
|
|
||||||
return 0, ''
|
return 0, ''
|
||||||
|
|
Loading…
Reference in a new issue