Revision ee844e20

b/lib/cmdlib.py
95 95
    self.LogStep = processor.LogStep # pylint: disable-msg=C0103
96 96
    # support for dry-run
97 97
    self.dry_run_result = None
98
    # support for generic debug attribute
99
    if (not hasattr(self.op, "debug_level") or
100
        not isinstance(self.op.debug_level, int)):
101
      self.op.debug_level = 0
98 102

  
99 103
    # Tasklets
100 104
    self.tasklets = None
b/lib/opcodes.py
120 120

  
121 121
  """
122 122
  OP_ID = "OP_ABSTRACT"
123
  __slots__ = ["dry_run"]
123
  __slots__ = ["dry_run", "debug_level"]
124 124

  
125 125
  def __getstate__(self):
126 126
    """Specialized getstate for opcodes.

Also available in: Unified diff