Revision 052783ff lib/bootstrap.py

b/lib/bootstrap.py
61 61
  permitted hosts and adds the hostkey to its own known hosts.
62 62

  
63 63
  """
64
  priv_key, pub_key, auth_keys = ssh.GetUserFiles(constants.GANETI_RUNAS)
64
  priv_key, pub_key, auth_keys = ssh.GetUserFiles(constants.SSH_LOGIN_USER)
65 65

  
66 66
  for name in priv_key, pub_key:
67 67
    if os.path.exists(name):
......
675 675
  mycommand = ("%s stop-all; %s start %s" %
676 676
               (pathutils.DAEMON_UTIL, pathutils.DAEMON_UTIL, constants.NODED))
677 677

  
678
  result = sshrunner.Run(node, "root", mycommand, batch=False,
678
  result = sshrunner.Run(node, constants.SSH_LOGIN_USER, mycommand, batch=False,
679 679
                         ask_key=ssh_key_check,
680 680
                         use_cluster_key=True,
681 681
                         strict_host_check=ssh_key_check)

Also available in: Unified diff