Revision c2fc8250

b/daemons/ganeti-noded
493 493
    """Checks if a node has the given ip address.
494 494

  
495 495
    """
496
    return utils.OwnIpAddress(params[0])
496
    return True, utils.OwnIpAddress(params[0])
497 497

  
498 498
  @staticmethod
499 499
  def perspective_node_info(params):
b/lib/cmdlib.py
2318 2318
    if new_node.secondary_ip != new_node.primary_ip:
2319 2319
      result = self.rpc.call_node_has_ip_address(new_node.name,
2320 2320
                                                 new_node.secondary_ip)
2321
      if result.failed or not result.data:
2321
      msg = result.RemoteFailMsg()
2322
      if msg:
2323
        raise errors.OpPrereqError("Failure checking secondary ip"
2324
                                   " on node %s: %s" % (new_node.name, msg))
2325
      if not result.payload:
2322 2326
        raise errors.OpExecError("Node claims it doesn't have the secondary ip"
2323 2327
                                 " you gave (%s). Please fix and re-run this"
2324 2328
                                 " command." % new_node.secondary_ip)

Also available in: Unified diff