Revision f8f590c8

b/lib/cmdlib.py
9668 9668
    ("duration", _TFloat),
9669 9669
    ("on_master", _TBool),
9670 9670
    ("on_nodes", _TListOf(_TNonEmptyString)),
9671
    ("repeat", _TPositiveInt)
9672
    ]
9673
  _OP_DEFS = [
9674
    ("repeat", 0),
9671 9675
    ]
9672 9676
  REQ_BGL = False
9673 9677

  
9674
  def CheckArguments(self):
9675
    # TODO: convert to the type system
9676
    self.op.repeat = getattr(self.op, "repeat", 0)
9677
    if self.op.repeat < 0:
9678
      raise errors.OpPrereqError("Repetition count cannot be negative")
9679

  
9680 9678
  def ExpandNames(self):
9681 9679
    """Expand names and set required locks.
9682 9680

  

Also available in: Unified diff