From 577d01baa30271c5e8873e5b629bc2e5e2982d1d Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 7 Jun 2017 11:56:25 +0530 Subject: [PATCH] fortios: module_utils: Fix typo in close call (#24853) Signed-off-by: Abhijeet Kasurde --- lib/ansible/module_utils/fortios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/fortios.py b/lib/ansible/module_utils/fortios.py index 661ec499ce3..4ad949bd027 100644 --- a/lib/ansible/module_utils/fortios.py +++ b/lib/ansible/module_utils/fortios.py @@ -162,7 +162,7 @@ class AnsibleFortios(object): try: f = open(self.module.params['config_file'], 'w') f.write(self.candidate_config.to_text()) - f.close + f.close() except IOError: e = get_exception() self.module.fail_json(msg='Error writing configuration file. %s' % e)