diff --git a/monkey/monkey_island/cc/resources/island_mode.py b/monkey/monkey_island/cc/resources/island_mode.py index ea2b8d946..a7d0a81de 100644 --- a/monkey/monkey_island/cc/resources/island_mode.py +++ b/monkey/monkey_island/cc/resources/island_mode.py @@ -6,8 +6,8 @@ from flask import make_response, request from monkey_island.cc.resources.auth.auth import jwt_required from monkey_island.cc.services.mode.get_island_mode_service import ModeNotSetError, get_mode -from monkey_island.cc.services.mode.set_island_mode_service import set_mode from monkey_island.cc.services.mode.mode_enum import IslandModeEnum +from monkey_island.cc.services.mode.set_island_mode_service import set_mode logger = logging.getLogger(__name__) diff --git a/monkey/monkey_island/cc/services/config.py b/monkey/monkey_island/cc/services/config.py index f70e8b611..82ab04864 100644 --- a/monkey/monkey_island/cc/services/config.py +++ b/monkey/monkey_island/cc/services/config.py @@ -1,16 +1,16 @@ import collections import copy -import dpath.util import functools import logging -from typing import Dict, Optional +from typing import Dict +import dpath.util from jsonschema import Draft4Validator, validators import monkey_island.cc.environment.environment_singleton as env_singleton -from monkey_island.cc.services.config_filters import FILTER_PER_MODE from monkey_island.cc.database import mongo from monkey_island.cc.server_utils.encryptor import get_encryptor +from monkey_island.cc.services.config_filters import FILTER_PER_MODE from monkey_island.cc.services.config_schema.config_schema import SCHEMA from monkey_island.cc.services.mode.get_island_mode_service import ModeNotSetError, get_mode from monkey_island.cc.services.post_breach_files import PostBreachFilesService diff --git a/monkey/monkey_island/cc/services/mode/set_island_mode_service.py b/monkey/monkey_island/cc/services/mode/set_island_mode_service.py index a1190e42a..b11aab8ca 100644 --- a/monkey/monkey_island/cc/services/mode/set_island_mode_service.py +++ b/monkey/monkey_island/cc/services/mode/set_island_mode_service.py @@ -1,6 +1,6 @@ from monkey_island.cc.models.island_mode_model import IslandMode -from monkey_island.cc.services.mode.mode_enum import IslandModeEnum from monkey_island.cc.services.config import ConfigService +from monkey_island.cc.services.mode.mode_enum import IslandModeEnum def set_mode(mode: IslandModeEnum):