mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 08:43:10 +00:00
@@ -116,7 +116,7 @@ class Connection(object):
|
|||||||
os.close(self.wfd)
|
os.close(self.wfd)
|
||||||
|
|
||||||
def not_in_host_file(self, host):
|
def not_in_host_file(self, host):
|
||||||
host_file = os.path.expanduser("~/.ssh/known_hosts")
|
host_file = os.path.expanduser(os.path.expandvars("~${USER}/.ssh/known_hosts"))
|
||||||
if not os.path.exists(host_file):
|
if not os.path.exists(host_file):
|
||||||
print "previous known host file not found"
|
print "previous known host file not found"
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user