grr/server/grr_response_server/hunt.py
def UpdateFn(h):
    """Updates given hunt in a transaction."""

    if h.hunt_state != h.HuntState.PAUSED:
      raise OnlyPausedHuntCanBeStartedError(h)

    if (output_plugins_states is not None and
        not hunt_obj.output_plugins_states):
      h.output_plugins_states = output_plugins_states
    h.hunt_state = h.HuntState.STARTED
    h.hunt_state_comment = None
    h.next_client_due = rdfvalue.RDFDatetime.Now()
    return h
Updates given hunt in a transaction.
Updates given hunt in a transaction.
Updates given hunt in a transaction .
def UpdateFn(h):
    if h.hunt_state != h.HuntState.PAUSED:
      raise OnlyPausedHuntCanBeStartedError(h)
    if (output_plugins_states is not None and
        not hunt_obj.output_plugins_states):
      h.output_plugins_states = output_plugins_states
    h.hunt_state = h.HuntState.STARTED
    h.hunt_state_comment = None
    h.next_client_due = rdfvalue.RDFDatetime.Now()
    return h
def UpdateFn ( h ) : if h . hunt_state != h . HuntState . PAUSED : raise OnlyPausedHuntCanBeStartedError ( h ) if ( output_plugins_states is not None and not hunt_obj . output_plugins_states ) : h . output_plugins_states = output_plugins_states h . hunt_state = h . HuntState . STARTED h . hunt_state_comment = None h . next_client_due = rdfvalue . RDFDatetime . Now ( ) return h
Updates given hunt in a transaction.
Updates given hunt in a transaction .
"""Updates given hunt in a transaction."""
h