#NEWLINE# def get_power_state( self , task ) : #NEWLINE# #INDENT# "Get the current power state of the task's node.\n\n        Poll the host for the current power state of the task's node.\n\n        :param task: a TaskManager instance containing the node to act on.\n        :returns: power state. One of :class:`ironic.common.states`.\n        :raises: InvalidParameterValue if any connection parameters are\n            incorrect.\n        :raises: MissingParameterValue when a required parameter is missing\n        :raises: NodeNotFound if could not find a VM corresponding to any\n            of the provided MACs.\n        :raises: SSHCommandFailed on an error from ssh.\n        :raises: SSHConnectFailed if ssh failed to connect to the node.\n        " #NEWLINE# driver_info = _parse_driver_info ( task . node ) #NEWLINE# driver_info [ 'macs' ] = driver_utils . get_node_mac_addresses ( task ) #NEWLINE# ssh_obj = _get_connection ( task . node ) #NEWLINE# return _get_power_status ( ssh_obj , driver_info )