From ea14bcc2f65fd50aa202eec0e98b7b83241d883f Mon Sep 17 00:00:00 2001 From: Mike Salvatore <mike.s.salvatore@gmail.com> Date: Wed, 10 Feb 2021 08:33:19 -0500 Subject: [PATCH] cc: rename DEFAULT_STANDARD_SERVER_CONFIG -> DEFAULT_STANDARD_SERVER_CONFIG_PATH --- .../monkey_island/cc/environment/server_config_generator.py | 4 ++-- monkey/monkey_island/cc/server_utils/consts.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/environment/server_config_generator.py b/monkey/monkey_island/cc/environment/server_config_generator.py index 3c0fb083e..c91922605 100644 --- a/monkey/monkey_island/cc/environment/server_config_generator.py +++ b/monkey/monkey_island/cc/environment/server_config_generator.py @@ -1,8 +1,8 @@ from pathlib import Path -from monkey_island.cc.server_utils.consts import DEFAULT_STANDARD_SERVER_CONFIG +from monkey_island.cc.server_utils.consts import DEFAULT_STANDARD_SERVER_CONFIG_PATH def create_default_config_file(path): - default_config = Path(DEFAULT_STANDARD_SERVER_CONFIG).read_text() + default_config = Path(DEFAULT_STANDARD_SERVER_CONFIG_PATH).read_text() Path(path).write_text(default_config) diff --git a/monkey/monkey_island/cc/server_utils/consts.py b/monkey/monkey_island/cc/server_utils/consts.py index 0be7e776d..904526618 100644 --- a/monkey/monkey_island/cc/server_utils/consts.py +++ b/monkey/monkey_island/cc/server_utils/consts.py @@ -9,4 +9,4 @@ _SERVER_CONFIG_FILENAME = "server_config.json" DEFAULT_SERVER_CONFIG_PATH = os.path.join(MONKEY_ISLAND_ABS_PATH, 'cc', _SERVER_CONFIG_FILENAME) _STANDARD_SERVER_CONFIG_FILENAME = "server_config.json.standard" -DEFAULT_STANDARD_SERVER_CONFIG = os.path.join(MONKEY_ISLAND_ABS_PATH, 'cc', _STANDARD_SERVER_CONFIG_FILENAME) +DEFAULT_STANDARD_SERVER_CONFIG_PATH = os.path.join(MONKEY_ISLAND_ABS_PATH, 'cc', _STANDARD_SERVER_CONFIG_FILENAME)