Revision 8f07f831

b/lib/ssh.py
90 90
  """Wrapper for SSH commands.
91 91

  
92 92
  """
93
  def BuildCmd(self, hostname, user, command, batch=True, ask_key=False):
93
  def BuildCmd(self, hostname, user, command, batch=True, ask_key=False,
94
               tty=False):
94 95
    """Build an ssh command to execute a command on a remote node.
95 96

  
96 97
    Args:
......
114 115
      argv.extend(BATCH_MODE_OPTS)
115 116
    elif ask_key:
116 117
      argv.extend(ASK_KEY_OPTS)
118
    if tty:
119
      argv.append("-t")
117 120
    argv.extend(["%s@%s" % (user, hostname), command])
118 121
    return argv
119 122

  

Also available in: Unified diff