#NEWLINE# @ task_manager . require_exclusive_lock #NEWLINE# def reboot( self , task ) : #NEWLINE# #INDENT# "Cycles the power to the task's node.\n\n        :param task: a TaskManager instance containing the node to act on.\n        :raises: InvalidParameterValue if a seamicro parameter is invalid.\n        :raises: MissingParameterValue if required seamicro parameters are\n            missing.\n        :raises: PowerStateFailure if the final state of the node is not\n            POWER_ON.\n        " #NEWLINE# state = _reboot ( task . node ) #NEWLINE# if ( state != states . POWER_ON ) : #NEWLINE# #INDENT# raise exception . PowerStateFailure ( pstate = states . POWER_ON )