From 805964d0e3f9bdc62e33dff934bb2112a0c2ef2b Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Wed, 3 Aug 2022 22:32:33 +0200 Subject: [PATCH] Island: Add Version to cc/__init__ --- monkey/monkey_island/cc/__init__.py | 1 + monkey/monkey_island/cc/resources/version.py | 2 +- monkey/monkey_island/cc/services/initialize.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/__init__.py b/monkey/monkey_island/cc/__init__.py index e69de29bb..1a7e6c0ea 100644 --- a/monkey/monkey_island/cc/__init__.py +++ b/monkey/monkey_island/cc/__init__.py @@ -0,0 +1 @@ +from .version import Version diff --git a/monkey/monkey_island/cc/resources/version.py b/monkey/monkey_island/cc/resources/version.py index ffd42dd94..97dca4a4c 100644 --- a/monkey/monkey_island/cc/resources/version.py +++ b/monkey/monkey_island/cc/resources/version.py @@ -1,7 +1,7 @@ import logging +from monkey_island.cc import Version from monkey_island.cc.resources.AbstractResource import AbstractResource -from monkey_island.cc.version import Version logger = logging.getLogger(__name__) diff --git a/monkey/monkey_island/cc/services/initialize.py b/monkey/monkey_island/cc/services/initialize.py index f8056cebc..a280c4705 100644 --- a/monkey/monkey_island/cc/services/initialize.py +++ b/monkey/monkey_island/cc/services/initialize.py @@ -14,6 +14,7 @@ from common.aws import AWSInstance from common.common_consts.telem_categories import TelemCategoryEnum from common.utils.file_utils import get_binary_io_sha256_hash from common.version import get_version +from monkey_island.cc import Version from monkey_island.cc.deployment import Deployment from monkey_island.cc.repository import ( AgentBinaryRepository, @@ -46,7 +47,6 @@ from monkey_island.cc.services.telemetry.processing.processing import ( TELEMETRY_CATEGORY_TO_PROCESSING_FUNC, ) from monkey_island.cc.setup.mongo.mongo_setup import MONGO_URL -from monkey_island.cc.version import Version from . import AuthenticationService from .reporting.report import ReportService