The original CL 5188004 only takes care of client side tests and missed the opportunities to support server side control file, since there are lots of occurrence of hosts.create_host(hostname) call inside the server control file.

I had to find a better way to pass ssh-options into hosts.create_host() function.

Reported by Thieu Le.

Change-Id: Ia48793fd73fec1b032a4e3fc1d8505d31431087a

BUG=9321
TEST=run client/server side sleeptest against a remote VM.

Review URL: http://codereview.chromium.org/5102010
diff --git a/server/server_job.py b/server/server_job.py
index 6ef59de..efc88d6 100644
--- a/server/server_job.py
+++ b/server/server_job.py
@@ -985,6 +985,9 @@
         namespace['autotest'].Autotest.job = self
         # server.hosts.base_classes.Host uses .job.
         namespace['hosts'].Host.job = self
+        namespace['hosts'].factory.ssh_user = self._ssh_user
+        namespace['hosts'].factory.ssh_port = self._ssh_port
+        namespace['hosts'].factory.ssh_pass = self._ssh_pass
 
 
     def _execute_code(self, code_file, namespace, protect=True):