Fix timeout option spec
authorClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Mon, 19 Sep 2011 07:03:03 +0000 (09:03 +0200)
committerClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Mon, 19 Sep 2011 07:03:03 +0000 (09:03 +0200)
src/nepi/util/server.py

index 4d7d550..2d15b38 100644 (file)
@@ -589,7 +589,8 @@ def popen_ssh_command(command, host, port, user, agent,
     tmp_known_hosts = None
     args = ['ssh',
             # Don't bother with localhost. Makes test easier
-            '-o', 'NoHostAuthenticationForLocalhost=yes,ConnectTimeout=%s' % (connect_timeout,),
+            '-o', 'NoHostAuthenticationForLocalhost=yes',
+            '-o', 'ConnectTimeout=%d' % (int(connect_timeout),),
             '-l', user, host]
     if agent:
         args.append('-A')