Use a python3 compatible notation for octal (#2238)

This commit is contained in:
Michael Scherer 2016-05-17 19:33:12 +02:00 committed by Matt Clay
parent 24a08d350a
commit d7ac2a8499
3 changed files with 4 additions and 4 deletions

View file

@ -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")