summaryrefslogtreecommitdiffstats
path: root/doctor_tests/common/utils.py
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2018-01-08 14:20:53 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2018-01-08 17:27:53 +0800
commit3e882aeb6b55ceef3bd3c20155f0014a7b8c058e (patch)
tree530549fa6e3832002fe57da5095f1f9db2ac65c9 /doctor_tests/common/utils.py
parentbdbd22904733af311225a3315555bb39ea12ed55 (diff)
support daisy installer
JIRA: DOCTOR-118 Change-Id: Id4d586fd2b7ca043cfd8231b9c46bdc581f039ab Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
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 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,