don't update last seen in checkrunner
This commit is contained in:
parent
041830a7f8
commit
b7150d8026
|
@ -144,8 +144,6 @@ class CheckRunner(APIView):
|
||||||
|
|
||||||
def get(self, request, agentid):
|
def get(self, request, agentid):
|
||||||
agent = get_object_or_404(Agent, agent_id=agentid)
|
agent = get_object_or_404(Agent, agent_id=agentid)
|
||||||
agent.last_seen = djangotime.now()
|
|
||||||
agent.save(update_fields=["last_seen"])
|
|
||||||
checks = Check.objects.filter(agent__pk=agent.pk, overriden_by_policy=False)
|
checks = Check.objects.filter(agent__pk=agent.pk, overriden_by_policy=False)
|
||||||
|
|
||||||
ret = {
|
ret = {
|
||||||
|
|
Loading…
Reference in New Issue