Revision a1b805fb lib/cmdlib.py

b/lib/cmdlib.py
2129 2129
                                    keyarray[2],
2130 2130
                                    keyarray[3], keyarray[4], keyarray[5])
2131 2131

  
2132
    if result.failed or not result.data:
2133
      raise errors.OpExecError("Cannot transfer ssh keys to the new node")
2132
    msg = result.RemoteFailMsg()
2133
    if msg:
2134
      raise errors.OpExecError("Cannot transfer ssh keys to the"
2135
                               " new node: %s" % msg)
2134 2136

  
2135 2137
    # Add node to our /etc/hosts, and add key to known_hosts
2136 2138
    utils.AddHostToEtcHosts(new_node.name)

Also available in: Unified diff