cc: use DEFAULT_SERVER_CONFIG_PATH in set_server_config

This commit is contained in:
Mike Salvatore 2021-02-10 08:09:43 -05:00
parent 98b64da896
commit a057dec1fe
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ def add_monkey_dir_to_sys_path():
add_monkey_dir_to_sys_path()
from monkey_island.cc.environment.environment_config import EnvironmentConfig # noqa: E402 isort:skip
from monkey_island.cc.consts import DEFAULT_SERVER_CONFIG_PATH # noqa: E402 isort:skip
SERVER_CONFIG = "server_config"
BACKUP_CONFIG_FILENAME = "./server_config.backup"
@ -26,7 +26,7 @@ logger.setLevel(logging.DEBUG)
def main():
args = parse_args()
file_path = EnvironmentConfig.get_config_file_path()
file_path = DEFAULT_SERVER_CONFIG_PATH
if args.server_config == "restore":
restore_previous_config(file_path)