summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/hosts/abstract_ssh.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/hosts/abstract_ssh.py b/server/hosts/abstract_ssh.py
index 3723c46b..0f61391d 100644
--- a/server/hosts/abstract_ssh.py
+++ b/server/hosts/abstract_ssh.py
@@ -10,8 +10,8 @@ enable_master_ssh = get_value('AUTOSERV', 'enable_master_ssh', type=bool,
default=False)
-def make_ssh_command(user="root", port=22, opts='', hosts_file='/dev/null',
- connect_timeout=30, alive_interval=300):
+def _make_ssh_cmd_default(user="root", port=22, opts='', hosts_file='/dev/null',
+ connect_timeout=30, alive_interval=300):
base_command = ("/usr/bin/ssh -a -x %s -o StrictHostKeyChecking=no "
"-o UserKnownHostsFile=%s -o BatchMode=yes "
"-o ConnectTimeout=%d -o ServerAliveInterval=%d "
@@ -22,6 +22,11 @@ def make_ssh_command(user="root", port=22, opts='', hosts_file='/dev/null',
alive_interval, user, port)
+make_ssh_command = utils.import_site_function(
+ __file__, "autotest_lib.server.hosts.site_host", "make_ssh_command",
+ _make_ssh_cmd_default)
+
+
# import site specific Host class
SiteHost = utils.import_site_class(
__file__, "autotest_lib.server.hosts.site_host", "SiteHost",