grr/server/grr_response_server/hunt.py
def UpdateFn(hunt_obj):
    """Update callback used by UpdateHuntObject."""

    if hunt_obj.hunt_state != hunt_obj.HuntState.PAUSED:
      raise OnlyPausedHuntCanBeModifiedError(hunt_obj)

    if client_limit is not None:
      hunt_obj.client_limit = client_limit

    if client_rate is not None:
      hunt_obj.client_rate = client_rate

    if expiry_time is not None:
      hunt_obj.expiry_time = expiry_time

    return hunt_obj
Update callback used by UpdateHuntObject.
Update callback used by UpdateHuntObject.
Update callback used by UpdateHuntObject .
def UpdateFn(hunt_obj):
    if hunt_obj.hunt_state != hunt_obj.HuntState.PAUSED:
      raise OnlyPausedHuntCanBeModifiedError(hunt_obj)
    if client_limit is not None:
      hunt_obj.client_limit = client_limit
    if client_rate is not None:
      hunt_obj.client_rate = client_rate
    if expiry_time is not None:
      hunt_obj.expiry_time = expiry_time
    return hunt_obj
def UpdateFn ( hunt_obj ) : if hunt_obj . hunt_state != hunt_obj . HuntState . PAUSED : raise OnlyPausedHuntCanBeModifiedError ( hunt_obj ) if client_limit is not None : hunt_obj . client_limit = client_limit if client_rate is not None : hunt_obj . client_rate = client_rate if expiry_time is not None : hunt_obj . expiry_time = expiry_time return hunt_obj
Update callback used by UpdateHuntObject.
Update callback used by UpdateHuntObject .
"""Update callback used by UpdateHuntObject."""
hunt_obj