Commit b047857b authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Use new “tty” parameter on SshRunner.BuildCmd for “gnt-instance console”

Reviewed-by: ultrotter
parent 8f07f831
......@@ -3261,13 +3261,10 @@ class LUConnectConsole(NoHooksLU):
hyper = hypervisor.GetHypervisor()
console_cmd = hyper.GetShellCommandForConsole(instance)
# build ssh cmdline
argv = ["ssh", "-q", "-t"]
argv.extend(ssh.KNOWN_HOSTS_OPTS)
argv.extend(ssh.BATCH_MODE_OPTS)
argv.append(node)
argv.append(console_cmd)
return "ssh", argv
cmd = self.ssh.BuildCmd(node, "root", console_cmd, batch=True, tty=True)
return cmd[0], cmd
class LUAddMDDRBDComponent(LogicalUnit):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment