1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

sysctl check fails if a custom sysctl_file is given.

This commit is contained in:
Alex Tomkins 2013-04-21 15:28:56 +01:00
parent 7fabaec55f
commit b1d5b97bbe

View file

@ -89,7 +89,7 @@ def reload_sysctl(**sysctl_args):
return 0, ''
# 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)
out, err = call.communicate()
if call.returncode == 0: