mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix syntax error for octal in encrypt methods
This commit is contained in:
parent
538568305a
commit
aa3687d736
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ def key_for_hostname(hostname):
|
||||||
|
|
||||||
key_path = os.path.expanduser(C.ACCELERATE_KEYS_DIR)
|
key_path = os.path.expanduser(C.ACCELERATE_KEYS_DIR)
|
||||||
if not os.path.exists(key_path):
|
if not os.path.exists(key_path):
|
||||||
os.makedirs(key_path, mode=0700)
|
os.makedirs(key_path, mode=0o700)
|
||||||
os.chmod(key_path, int(C.ACCELERATE_KEYS_DIR_PERMS, 8))
|
os.chmod(key_path, int(C.ACCELERATE_KEYS_DIR_PERMS, 8))
|
||||||
elif not os.path.isdir(key_path):
|
elif not os.path.isdir(key_path):
|
||||||
raise AnsibleError('ACCELERATE_KEYS_DIR is not a directory.')
|
raise AnsibleError('ACCELERATE_KEYS_DIR is not a directory.')
|
||||||
|
|
Loading…
Reference in a new issue