Commit 8abca62b by lessmian

sysctl module: fixed issue when checks_after fail on comparing keys with values…

sysctl module: fixed issue when checks_after fail on comparing keys with values separated by white strings
parent 1b73227a
......@@ -189,6 +189,7 @@ def sysctl_check(current_step, **sysctl_args):
output = f.read()
f.close()
output = output.strip(' \t\n\r')
output = re.sub(r'\s+', ' ', output)
# multi positive integer values separated by spaces as described in issue #2004 :
if re.search('^([\d\s]+)$', sysctl_args['value']):
......
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