Check correct stored hosts filename.

This commit is contained in:
Nathan Scowcroft 2013-06-13 13:05:11 -04:00 committed by Jeff Forcier
parent 6d326fcde2
commit a1c1f8f29f
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ class SSHClient (object):
# update local host keys from file (in case other SSH clients # update local host keys from file (in case other SSH clients
# have written to the known_hosts file meanwhile. # have written to the known_hosts file meanwhile.
if self.known_hosts is not None: if self._host_keys_filename is not None:
self.load_host_keys(self.known_hosts) self.load_host_keys(self._known_keys_filename)
f = open(filename, 'w') f = open(filename, 'w')
for hostname, keys in self._host_keys.iteritems(): for hostname, keys in self._host_keys.iteritems():