Check correct stored hosts filename.
This commit is contained in:
parent
6d326fcde2
commit
a1c1f8f29f
|
@ -189,8 +189,8 @@ class SSHClient (object):
|
|||
|
||||
# update local host keys from file (in case other SSH clients
|
||||
# have written to the known_hosts file meanwhile.
|
||||
if self.known_hosts is not None:
|
||||
self.load_host_keys(self.known_hosts)
|
||||
if self._host_keys_filename is not None:
|
||||
self.load_host_keys(self._known_keys_filename)
|
||||
|
||||
f = open(filename, 'w')
|
||||
for hostname, keys in self._host_keys.iteritems():
|
||||
|
|
Loading…
Reference in New Issue