Revision aafb303d lib/cmdlib.py

b/lib/cmdlib.py
2378 2378
                               " new node: %s" % msg)
2379 2379

  
2380 2380
    # Add node to our /etc/hosts, and add key to known_hosts
2381
    utils.AddHostToEtcHosts(new_node.name)
2381
    if self.cfg.GetClusterInfo().modify_etc_hosts:
2382
      utils.AddHostToEtcHosts(new_node.name)
2382 2383

  
2383 2384
    if new_node.secondary_ip != new_node.primary_ip:
2384 2385
      result = self.rpc.call_node_has_ip_address(new_node.name,

Also available in: Unified diff