From 3e882aeb6b55ceef3bd3c20155f0014a7b8c058e Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Mon, 8 Jan 2018 14:20:53 +0800 Subject: support daisy installer JIRA: DOCTOR-118 Change-Id: Id4d586fd2b7ca043cfd8231b9c46bdc581f039ab Signed-off-by: dongwenjuan --- doctor_tests/common/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doctor_tests/common') diff --git a/doctor_tests/common/utils.py b/doctor_tests/common/utils.py index d2962a8a..01889d9a 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, -- cgit 1.2.3-korg