ditto
This commit is contained in:
parent
a1c1f8f29f
commit
0fea895cdb
|
@ -190,7 +190,7 @@ 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._host_keys_filename is not None:
|
if self._host_keys_filename is not None:
|
||||||
self.load_host_keys(self._known_keys_filename)
|
self.load_host_keys(self._host_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():
|
||||||
|
|
Loading…
Reference in New Issue