Revision ff1c051b lib/cmdlib/base.py

b/lib/cmdlib/base.py
269 269
  def BuildHooksNodes(self):
270 270
    """Build list of nodes to run LU's hooks.
271 271

  
272
    @rtype: tuple; (list, list) or (list, list, list)
272
    @rtype: tuple; (list, list)
273 273
    @return: Tuple containing a list of node UUIDs on which the hook
274 274
      should run before the execution and a list of node UUIDs on which the
275
      hook should run after the execution. As it might be possible that the
276
      node UUID is not known at the time this method is invoked, an optional
277
      third list can be added which contains node names on which the hook
278
      should run after the execution (in case of node add, for instance).
275
      hook should run after the execution.
279 276
      No nodes should be returned as an empty list (and not None).
280 277
    @note: If the C{HPATH} attribute of the LU class is C{None}, this function
281 278
      will not be called.

Also available in: Unified diff