mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 22:39:09 -07:00
Use a python3 compatible notation for octal (#2238)
This commit is contained in:
parent
24a08d350a
commit
d7ac2a8499
3 changed files with 4 additions and 4 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue