fortios: module_utils: Fix typo in close call (#24853)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
8a4a04b016
commit
577d01baa3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue