From eabbca4f32e5bc7464b0ea2189c6ccfcc4a4d26c Mon Sep 17 00:00:00 2001 From: Shreya Date: Tue, 20 Jul 2021 16:10:22 +0530 Subject: [PATCH] island: Fix circular import error in `config_manipulator.py` --- monkey/monkey_island/cc/services/config_manipulator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/services/config_manipulator.py b/monkey/monkey_island/cc/services/config_manipulator.py index 8b92e1767..21ca693c1 100644 --- a/monkey/monkey_island/cc/services/config_manipulator.py +++ b/monkey/monkey_island/cc/services/config_manipulator.py @@ -2,19 +2,19 @@ from typing import Dict import dpath.util -from monkey_island.cc.services.config import ConfigService +import monkey_island.cc.services.config as config_service from monkey_island.cc.services.config_filters import FILTER_PER_MODE from monkey_island.cc.services.mode.mode_enum import IslandModeEnum def update_config_on_mode_set(mode: IslandModeEnum) -> bool: - config = ConfigService.get_config() + config = config_service.ConfigService.get_config() return update_config_per_mode(mode, config, True) def update_config_per_mode(mode: IslandModeEnum, config: Dict, should_encrypt: bool) -> bool: config = _set_default_config_values_per_mode(mode, config) - return ConfigService.update_config(config_json=config, should_encrypt=True) + return config_service.ConfigService.update_config(config_json=config, should_encrypt=True) def _set_default_config_values_per_mode(mode: IslandModeEnum, config: Dict) -> Dict: