From 58501d365058c297c5f4ff96b6f4763991c63d15 Mon Sep 17 00:00:00 2001 From: GGabriele Date: Wed, 14 Sep 2016 16:01:12 +0200 Subject: [PATCH] Removing indentations --- lib/ansible/modules/network/nxos/nxos_snapshot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_snapshot.py b/lib/ansible/modules/network/nxos/nxos_snapshot.py index 54a4ae965b4..f99c2ed294d 100644 --- a/lib/ansible/modules/network/nxos/nxos_snapshot.py +++ b/lib/ansible/modules/network/nxos/nxos_snapshot.py @@ -561,9 +561,9 @@ def write_on_file(content, filename, module): path += '/' filepath = '{0}{1}'.format(path, filename) try: - report = open(filepath, 'w') - report.write(content) - report.close() + report = open(filepath, 'w') + report.write(content) + report.close() except: module.fail_json(msg="Error while writing on file.")