1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix python3 syntax for octal numbers

This commit is contained in:
Toshio Kuratomi 2016-11-02 19:32:02 -07:00 committed by Matt Clay
parent 58ec3df13d
commit b82ceae75f

View file

@ -210,7 +210,7 @@ def main():
module.fail_json(name=base_dir, msg='The directory %s does not exist or the file is not a directory' % base_dir)
if not module.params['mode']:
module.params['mode'] = 0600
module.params['mode'] = int('0600', 8)
private_key = PrivateKey(module)
if private_key.state == 'present':