mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
bugfix: use correct function close calls
This commit is contained in:
committed by
Matt Clay
parent
f10de6e47b
commit
19da801665
@@ -211,7 +211,7 @@ def download_request(module, name, apiid, apikey, cert_type):
|
||||
body = response.read()
|
||||
cert_file = open(cert_file_path, 'w')
|
||||
cert_file.write(body)
|
||||
cert_file.close
|
||||
cert_file.close()
|
||||
os.chmod(cert_file_path, 0600)
|
||||
except:
|
||||
module.fail_json("Could not write to certificate file")
|
||||
|
||||
Reference in New Issue
Block a user