From 45151e7e19e1d256078a3da9f0c3be8f484ffee9 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Thu, 14 Jul 2022 14:24:10 +0530 Subject: [PATCH] Island: Modify scan telemetry processing function to accept agent configuration --- monkey/monkey_island/cc/services/telemetry/processing/scan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/telemetry/processing/scan.py b/monkey/monkey_island/cc/services/telemetry/processing/scan.py index 2a29b7762..7c31c7761 100644 --- a/monkey/monkey_island/cc/services/telemetry/processing/scan.py +++ b/monkey/monkey_island/cc/services/telemetry/processing/scan.py @@ -1,5 +1,6 @@ from typing import Mapping +from common.configuration import AgentConfiguration from monkey_island.cc.database import mongo from monkey_island.cc.models import Monkey 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"]): return