summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/client.py4
1 files 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():