Renamed get_host_keys to load_host_keys

This commit is contained in:
Sheng
2018-04-11 20:19:49 +08:00
parent 6c9af890bc
commit f157be5b6c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import threading
import paramiko
def get_host_keys(path):
def load_host_keys(path):
if os.path.exists(path) and os.path.isfile(path):
return paramiko.hostkeys.HostKeys(filename=path)
return paramiko.hostkeys.HostKeys()