mirror of https://github.com/ansible/ansible.git
Fix .ssh/known_hosts path expansion.
In particular, do not rely on the $USER environment variable always existing.
tmux for example seems to clear it, causing lots of invalid messages:
"previous known host file not found"
This broke in commit 80fd22dc
, but instead of reverting that commit, we now
fall back to expanding just ~ when $USER is not set.
pull/5807/merge
parent
7f6dcf3949
commit
b6875b3b87
Loading…
Reference in New Issue