mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 02:33:09 +00:00
Fix python3 syntax for octal numbers
This commit is contained in:
committed by
Matt Clay
parent
58ec3df13d
commit
b82ceae75f
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user