Revision 57106b74

b/lib/opcodes.py
128 128
_PStartupPaused = ("startup_paused", False, ht.TBool,
129 129
                   "Pause instance at startup")
130 130

  
131
_PVerbose = ("verbose", False, ht.TBool, "Verbose mode")
132

  
133
# Parameters for cluster verification
134
_PDebugSimulateErrors = ("debug_simulate_errors", False, ht.TBool,
135
                         "Whether to simulate errors (useful for debugging)")
136
_PErrorCodes = ("error_codes", False, ht.TBool, "Error codes")
137
_PSkipChecks = ("skip_checks", ht.EmptyList,
138
                ht.TListOf(ht.TElemOf(constants.VERIFY_OPTIONAL_CHECKS)),
139
                "Which checks to skip")
131 140

  
132 141
#: OP_ID conversion regular expression
133 142
_OPID_RE = re.compile("([a-z])([A-Z])")
......
569 578

  
570 579
  """
571 580
  OP_PARAMS = [
572
    ("verbose", False, ht.TBool, None),
573
    ("error_codes", False, ht.TBool, None),
574
    ("debug_simulate_errors", False, ht.TBool, None),
581
    _PDebugSimulateErrors,
582
    _PErrorCodes,
583
    _PVerbose,
575 584
    ]
576 585

  
577 586

  
......
587 596
  """
588 597
  OP_DSC_FIELD = "group_name"
589 598
  OP_PARAMS = [
590
    ("group_name", ht.NoDefault, ht.TNonEmptyString, None),
591
    ("skip_checks", ht.EmptyList,
592
     ht.TListOf(ht.TElemOf(constants.VERIFY_OPTIONAL_CHECKS)), None),
593
    ("verbose", False, ht.TBool, None),
594
    ("error_codes", False, ht.TBool, None),
595
    ("debug_simulate_errors", False, ht.TBool, None),
599
    _PGroupName,
600
    _PDebugSimulateErrors,
601
    _PErrorCodes,
602
    _PSkipChecks,
603
    _PVerbose,
596 604
    ]
597 605

  
598 606

  

Also available in: Unified diff