diff options
author | James Cammarata <jcammarata@ansibleworks.com> | 2014-02-10 20:27:43 +0100 |
---|---|---|
committer | James Cammarata <jcammarata@ansibleworks.com> | 2014-02-10 20:27:43 +0100 |
commit | bb79b16d598715992866384d3fb048765766ea3f (patch) | |
tree | c1c4d7780c3ef46117d66810b18fd816fc83e5d9 /lib | |
parent | Merge branch 'devel' of https://github.com/xyrix/ansible into xyrix-devel (diff) | |
download | ansible-bb79b16d598715992866384d3fb048765766ea3f.tar.xz ansible-bb79b16d598715992866384d3fb048765766ea3f.zip |
Specify mode in the makedirs call for fireball/accelerate keys
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/utils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index b38afb2fd4..49e9316d9a 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -89,7 +89,7 @@ def key_for_hostname(hostname): key_path = os.path.expanduser(C.ACCELERATE_KEYS_DIR) if not os.path.exists(key_path): - os.makedirs(key_path) + os.makedirs(key_path, mode=0700) os.chmod(key_path, int(C.ACCELERATE_KEYS_DIR_PERMS, 8)) elif not os.path.isdir(key_path): raise errors.AnsibleError('ACCELERATE_KEYS_DIR is not a directory.') |