mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +00:00
fortios: module_utils: Fix typo in close call (#24853)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user