From b1d5b97bbecf580bd2debd71344c6c2872b7a1dc Mon Sep 17 00:00:00 2001 From: Alex Tomkins Date: Sun, 21 Apr 2013 15:28:56 +0100 Subject: [PATCH] sysctl check fails if a custom sysctl_file is given. --- library/sysctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/sysctl b/library/sysctl index fc8516cc2bd..c7f3af71287 100644 --- a/library/sysctl +++ b/library/sysctl @@ -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: