From 922db9c58326bad6f6b07172fc2d15cce03705cb Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 16 Sep 2022 12:53:50 +0530 Subject: [PATCH] Agent: Fix import common.event_serializers -> common.agent_event_serializers --- monkey/infection_monkey/agent_event_forwarder.py | 2 +- monkey/infection_monkey/monkey.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/infection_monkey/agent_event_forwarder.py b/monkey/infection_monkey/agent_event_forwarder.py index c0a731fcf..2458b7a6d 100644 --- a/monkey/infection_monkey/agent_event_forwarder.py +++ b/monkey/infection_monkey/agent_event_forwarder.py @@ -5,8 +5,8 @@ from time import sleep import requests +from common.agent_event_serializers import AgentEventSerializerRegistry, JSONSerializable from common.common_consts.timeouts import MEDIUM_REQUEST_TIMEOUT -from common.event_serializers import AgentEventSerializerRegistry, JSONSerializable from common.events import AbstractAgentEvent from infection_monkey.utils.threading import create_daemon_thread diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index ccc03adf9..c1594efa8 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -9,11 +9,11 @@ from typing import List from pubsub.core import Publisher -from common.event_queue import IAgentEventQueue, PyPubSubAgentEventQueue -from common.event_serializers import ( +from common.agent_event_serializers import ( AgentEventSerializerRegistry, register_common_agent_event_serializers, ) +from common.event_queue import IAgentEventQueue, PyPubSubAgentEventQueue from common.events import CredentialsStolenEvent from common.network.network_utils import address_to_ip_port from common.utils.argparse_types import positive_int