Revision b15d625f daemons/ganeti-master

b/daemons/ganeti-master
106 106
  """Starts the master.
107 107

  
108 108
  """
109
  if utils.TcpPing(utils.HostInfo().name, master_ip,
110
                   constants.DEFAULT_NODED_PORT):
111
    if utils.TcpPing(constants.LOCALHOST_IP_ADDRESS, master_ip,
112
                     constants.DEFAULT_NODED_PORT):
109
  if utils.TcpPing(master_ip, constants.DEFAULT_NODED_PORT):
110
    if utils.TcpPing(master_ip, constants.DEFAULT_NODED_PORT,
111
                     source=constants.LOCALHOST_IP_ADDRESS):
113 112
      # we already have the ip:
114 113
      if debug:
115 114
        sys.stderr.write("Notice: already started.\n")

Also available in: Unified diff