Island: Modify scan telemetry processing function to accept agent configuration

This commit is contained in:
Shreya Malviya 2022-07-14 14:24:10 +05:30
parent df6296fc6b
commit 45151e7e19
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
from typing import Mapping from typing import Mapping
from common.configuration import AgentConfiguration
from monkey_island.cc.database import mongo from monkey_island.cc.database import mongo
from monkey_island.cc.models import Monkey from monkey_island.cc.models import Monkey
from monkey_island.cc.services.node import NodeService from monkey_island.cc.services.node import NodeService
@ -14,7 +15,7 @@ from monkey_island.cc.services.telemetry.zero_trust_checks.segmentation import (
) )
def process_scan_telemetry(telemetry_json, _): def process_scan_telemetry(telemetry_json, agent_configuration: AgentConfiguration):
if not _host_responded(telemetry_json["data"]["machine"]): if not _host_responded(telemetry_json["data"]["machine"]):
return return