summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNathan Scowcroft <scowcron@gmail.com>2013-06-13 13:05:11 -0400
committerJeff Forcier <jeff@bitprophet.org>2014-01-08 12:45:14 -0800
commita1c1f8f29f3c24e9f34a76e3f5efc57e62396cd8 (patch)
tree114a5e9ac1148460aba5f782792b114fa27843c0
parent6d326fcde20dece926c2cf661991590e20a00eab (diff)
Check correct stored hosts filename.
-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():