From e0496634c595afe9d14b0aaff7e2d5836ff44b07 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. --- library/sysctl | 1 - 1 file changed, 1 deletion(-) diff --git a/library/sysctl b/library/sysctl index dd5b56d6d7..0c06e7989c 100644 --- a/library/sysctl +++ b/library/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)')