From 8b5df82b74cf687b0abcb3dafa92c9fff449e4a8 Mon Sep 17 00:00:00 2001 From: Michel Blanc Date: Wed, 20 Feb 2013 14:20:27 +0100 Subject: [PATCH] Removes useless empty string write It s not necessary to write an empty string for the file to be created. --- sysctl | 1 - 1 file changed, 1 deletion(-) diff --git a/sysctl b/sysctl index dd5b56d6d7e..0c06e7989c7 100644 --- a/sysctl +++ b/sysctl @@ -238,7 +238,6 @@ def main(): if not os.access(sysctl_args['sysctl_file'], os.W_OK): try: f = open(sysctl_args['sysctl_file'],'w') - f.write('') f.close() except IOError, e: module.fail_json(msg='unable to create supplied sysctl file (destination directory probably missing)')