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

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/24455/merge
Abhijeet Kasurde 8 years ago committed by René Moser
parent 8a4a04b016
commit 577d01baa3

@ -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)

Loading…
Cancel
Save