fortios: module_utils: Fix typo in close call (#24853)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-06-07 11:56:25 +05:30 committed by René Moser
parent 8a4a04b016
commit 577d01baa3

View file

@ -162,7 +162,7 @@ class AnsibleFortios(object):
try: try:
f = open(self.module.params['config_file'], 'w') f = open(self.module.params['config_file'], 'w')
f.write(self.candidate_config.to_text()) f.write(self.candidate_config.to_text())
f.close f.close()
except IOError: except IOError:
e = get_exception() e = get_exception()
self.module.fail_json(msg='Error writing configuration file. %s' % e) self.module.fail_json(msg='Error writing configuration file. %s' % e)