summaryrefslogtreecommitdiffstats
path: root/doctor_tests/common/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'doctor_tests/common/utils.py')
-rw-r--r--doctor_tests/common/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/doctor_tests/common/utils.py b/doctor_tests/common/utils.py
index 0e2c8752..1a84c824 100644
--- a/doctor_tests/common/utils.py
+++ b/doctor_tests/common/utils.py
@@ -57,8 +57,7 @@ class SSHClient(object):
key_filename=None, log=None, look_for_keys=False,
allow_agent=False):
self.client = paramiko.SSHClient()
- self.client.load_system_host_keys()
- self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
+ self.client.set_missing_host_key_policy(paramiko.WarningPolicy())
self.client.connect(ip, username=username, password=password,
pkey=pkey, key_filename=key_filename,
look_for_keys=look_for_keys,