Island: Fix imports common.events -> common.agent_events

This commit is contained in:
Shreya Malviya 2022-09-16 18:18:09 +05:30 committed by Mike Salvatore
parent c8d11cdfe7
commit d93eb4565b
6 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import logging
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
from monkey_island.cc.repository import IAgentEventRepository, StorageError
logger = logging.getLogger(__name__)

View File

@ -1,6 +1,6 @@
import logging
from common.events import CredentialsStolenEvent
from common.agent_events import CredentialsStolenEvent
from monkey_island.cc.repository import ICredentialsRepository, StorageError
logger = logging.getLogger(__name__)

View File

@ -1,7 +1,7 @@
from abc import ABC, abstractmethod
from typing import Sequence, Type, TypeVar
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
from common.types import AgentID
T = TypeVar("T", bound=AbstractAgentEvent)

View File

@ -3,7 +3,7 @@ from typing import Any, Dict, MutableMapping, Sequence, Type
from pymongo import MongoClient
from common.agent_event_serializers import EVENT_TYPE_FIELD, AgentEventSerializerRegistry
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
from common.types import AgentID
from monkey_island.cc.repository import IAgentEventRepository

View File

@ -1,6 +1,6 @@
from typing import Sequence, Type, TypeVar
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
from common.types import AgentID
from . import IAgentEventRepository

View File

@ -1,6 +1,6 @@
from common import DIContainer
from common.agent_events import CredentialsStolenEvent
from common.event_queue import IAgentEventQueue
from common.events import CredentialsStolenEvent
from monkey_island.cc.agent_event_handlers import (
save_event_to_event_repository,
save_stolen_credentials_to_repository,