Revision 8dca23a3 lib/mcpu.py
b/lib/mcpu.py | ||
---|---|---|
317 | 317 |
|
318 | 318 |
This is the main function of the HookMaster. |
319 | 319 |
|
320 |
Args: |
|
321 |
phase: the hooks phase to run |
|
322 |
|
|
323 |
Returns: |
|
324 |
the result of the hooks multi-node rpc call |
|
320 |
@param phase: one of L{constants.HOOKS_PHASE_POST} or |
|
321 |
L{constants.HOOKS_PHASE_PRE}; it denotes the hooks phase |
|
322 |
@return: the processed results of the hooks multi-node rpc call |
|
323 |
@raise errors.HooksFailure: on communication failure to the nodes |
|
325 | 324 |
|
326 | 325 |
""" |
327 | 326 |
if not self.node_list[phase]: |
Also available in: Unified diff