Revision 6a373640 lib/cmdlib.py

b/lib/cmdlib.py
74 74
  return cfg.GetNdParams(node)[constants.ND_OOB_PROGRAM]
75 75

  
76 76

  
77
# End types
77
class ResultWithJobs:
78
  """Data container for LU results with jobs.
79

  
80
  Instances of this class returned from L{LogicalUnit.Exec} will be recognized
81
  by L{mcpu.Processor._ProcessResult}. The latter will then submit the jobs
82
  contained in the C{jobs} attribute and include the job IDs in the opcode
83
  result.
84

  
85
  """
86
  def __init__(self, jobs, **kwargs):
87
    """Initializes this class.
88

  
89
    Additional return values can be specified as keyword arguments.
90

  
91
    @type jobs: list of lists of L{opcode.OpCode}
92
    @param jobs: A list of lists of opcode objects
93

  
94
    """
95
    self.jobs = jobs
96
    self.other = kwargs
97

  
98

  
78 99
class LogicalUnit(object):
79 100
  """Logical Unit base class.
80 101

  

Also available in: Unified diff