def Pause(self):
    """Pauses the hunt (removes Foreman rules, does not touch expiry time)."""
    if not self.IsHuntStarted():
      return

    self._RemoveForemanRule()

    self.hunt_obj.Set(self.hunt_obj.Schema.STATE("PAUSED"))
    self.hunt_obj.Flush()

    self._CreateAuditEvent("HUNT_PAUSED")
def Pause ( self ) : if not self . IsHuntStarted ( ) : return self . _RemoveForemanRule ( ) self . hunt_obj . Set ( self . hunt_obj . Schema . STATE ( "PAUSED" ) ) self . hunt_obj . Flush ( ) self . _CreateAuditEvent ( "HUNT_PAUSED" )
Pauses the hunt (removes Foreman rules, does not touch expiry time).