mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
sysctl module: fixed issue when checks_after fail on comparing keys with values separated by white strings
This commit is contained in:
parent
1b73227a30
commit
8abca62b92
1 changed files with 1 additions and 0 deletions
|
@ -189,6 +189,7 @@ def sysctl_check(current_step, **sysctl_args):
|
||||||
output = f.read()
|
output = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
output = output.strip(' \t\n\r')
|
output = output.strip(' \t\n\r')
|
||||||
|
output = re.sub(r'\s+', ' ', output)
|
||||||
|
|
||||||
# multi positive integer values separated by spaces as described in issue #2004 :
|
# multi positive integer values separated by spaces as described in issue #2004 :
|
||||||
if re.search('^([\d\s]+)$', sysctl_args['value']):
|
if re.search('^([\d\s]+)$', sysctl_args['value']):
|
||||||
|
|
Loading…
Reference in a new issue