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:
parent
58ec3df13d
commit
b82ceae75f
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue