From f724a702f1742dc49f0af5af184059300eadeac6 Mon Sep 17 00:00:00 2001 From: Balazs Lecz <leczb@google.com> Date: Fri, 7 May 2010 19:14:36 +0100 Subject: [PATCH] Force ssh to allocate a tty This is required to avoid the "Pseudo-terminal will not be allocated because stdin is not a terminal." ssh error message in case a Ganeti script is run non-interactively. Signed-off-by: Balazs Lecz <leczb@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ssh.py b/lib/ssh.py index c6aad84d9..8fb924b29 100644 --- a/lib/ssh.py +++ b/lib/ssh.py @@ -156,7 +156,7 @@ class SshRunner: strict_host_check, private_key, quiet=quiet)) if tty: - argv.append("-t") + argv.extend(["-t", "-t"]) argv.extend(["%s@%s" % (user, hostname), command]) return argv -- GitLab