Revision 63ac47cc lib/cmdlib.py

b/lib/cmdlib.py
8219 8219
  REQ_BGL = False
8220 8220

  
8221 8221
  def CheckArguments(self):
8222
    if self.op.remote_node is not None and self.op.iallocator is not None:
8223
      raise errors.OpPrereqError("Give either the iallocator or the new"
8224
                                 " secondary, not both", errors.ECODE_INVAL)
8222
    _CheckIAllocatorOrNode(self, "iallocator", "remote_node")
8225 8223

  
8226 8224
  def ExpandNames(self):
8227 8225
    self.op.nodes = _GetWantedNodes(self, self.op.nodes)

Also available in: Unified diff