Revision 7bff16bd tools/setup-ssh

b/tools/setup-ssh
220 220
  SetupLogging(options)
221 221

  
222 222
  passwd = getpass.getpass(prompt="%s password:" % constants.GANETI_RUNAS)
223
  ssh_port = netutils.GetDaemonPort("ssh")
223 224

  
224 225
  # Below, we need to join() the transport objects, as otherwise the
225 226
  # following happens:
......
231 232
  #   now
232 233

  
233 234
  for host in args:
234
    transport = paramiko.Transport((host, netutils.GetDaemonPort("ssh")))
235
    transport = paramiko.Transport((host, ssh_port))
235 236
    try:
236 237
      transport.connect(username=constants.GANETI_RUNAS, password=passwd)
237 238
    except Exception, err:

Also available in: Unified diff