Removes useless empty string write
It s not necessary to write an empty string for the file to be created.
This commit is contained in:
parent
6f9d28c8b1
commit
e0496634c5
1 changed files with 0 additions and 1 deletions
|
@ -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)')
|
||||
|
|
Loading…
Reference in a new issue