1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Removing indentations

This commit is contained in:
GGabriele 2016-09-14 16:01:12 +02:00 committed by Matt Clay
parent 852f5176a1
commit 58501d3650

View file

@ -561,9 +561,9 @@ def write_on_file(content, filename, module):
path += '/' path += '/'
filepath = '{0}{1}'.format(path, filename) filepath = '{0}{1}'.format(path, filename)
try: try:
report = open(filepath, 'w') report = open(filepath, 'w')
report.write(content) report.write(content)
report.close() report.close()
except: except:
module.fail_json(msg="Error while writing on file.") module.fail_json(msg="Error while writing on file.")