Merge pull request #2131 from lessmian/sysctl_module

sysctl module: fixed issue when checks_after fail on comparing keys with...
This commit is contained in:
Daniel Hokka Zakrisson 2013-02-19 12:39:19 -08:00
commit cc159a68b2

View file

@ -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']):