sysctl check fails if a custom sysctl_file is given.

reviewable/pr18780/r1
Alex Tomkins 12 years ago
parent b72dedc36e
commit c2cd9821c1

@ -89,7 +89,7 @@ def reload_sysctl(**sysctl_args):
return 0, '' return 0, ''
# do it # do it
cmd = [ '/sbin/sysctl', '-p' ] cmd = [ '/sbin/sysctl', '-p', sysctl_args['sysctl_file']]
call = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) call = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = call.communicate() out, err = call.communicate()
if call.returncode == 0: if call.returncode == 0:

Loading…
Cancel
Save