From 79e8ce5f7965d6ff9ae089856a50379d9e175a3a Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 7 Oct 2022 07:44:49 -0400 Subject: [PATCH] Island: Pass tuple, not set to upsert_tcp_connections() pydantic can probably handle the set -> tuple conversion itself, but mypy complains. --- .../monkey_island/cc/agent_event_handlers/scan_event_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/agent_event_handlers/scan_event_handler.py b/monkey/monkey_island/cc/agent_event_handlers/scan_event_handler.py index 16acca23b..5afcc74a6 100644 --- a/monkey/monkey_island/cc/agent_event_handlers/scan_event_handler.py +++ b/monkey/monkey_island/cc/agent_event_handlers/scan_event_handler.py @@ -104,5 +104,5 @@ class ScanEventHandler: if tcp_connections: self._node_repository.upsert_tcp_connections( - src_node.machine_id, {target_machine.id: tcp_connections} + src_node.machine_id, {target_machine.id: tuple(tcp_connections)} )