mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 09:43:15 +00:00
Removing indentation
This commit is contained in:
@@ -562,8 +562,8 @@ def write_on_file(content, filename, module):
|
||||
filepath = '{0}{1}'.format(path, filename)
|
||||
try:
|
||||
report = open(filepath, 'w')
|
||||
report.write(content)
|
||||
report.close()
|
||||
report.write(content)
|
||||
report.close()
|
||||
except:
|
||||
module.fail_json(msg="Error while writing on file.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user