mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Use a python3 compatible notation for octal (#2238)
This commit is contained in:
committed by
Matt Clay
parent
24a08d350a
commit
d7ac2a8499
@@ -220,7 +220,7 @@ def download_request(module, name, apiid, apikey, cert_type):
|
||||
cert_file = open(cert_file_path, 'w')
|
||||
cert_file.write(body)
|
||||
cert_file.close()
|
||||
os.chmod(cert_file_path, 0600)
|
||||
os.chmod(cert_file_path, int('0600', 8))
|
||||
except:
|
||||
module.fail_json("Could not write to certificate file")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user