Skip to content

Commit edb745f

Browse files
committed
issue #543: create ~/.ssh if it doesn't exist
1 parent 0741876 commit edb745f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.ci/localhost_ansible_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131

3232

3333
with ci_lib.Fold('machine_prep'):
34+
ssh_dir = os.path.expanduser('~/.ssh')
35+
if not os.path.exists(ssh_dir):
36+
os.makedirs(ssh_dir, int('0700', 8))
37+
3438
key_path = os.path.expanduser('~/.ssh/id_rsa')
3539
shutil.copy(KEY_PATH, key_path)
3640

0 commit comments

Comments
 (0)