From a1c1f8f29f3c24e9f34a76e3f5efc57e62396cd8 Mon Sep 17 00:00:00 2001 From: Nathan Scowcroft Date: Thu, 13 Jun 2013 13:05:11 -0400 Subject: Check correct stored hosts filename. --- paramiko/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paramiko/client.py b/paramiko/client.py index c5a2d1ac..4adcfe74 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -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(): -- cgit v1.2.3