From 9705c73978226e02d5759d1087914d58ff8e5b24 Mon Sep 17 00:00:00 2001 From: Shreya Date: Fri, 21 May 2021 18:57:40 +0530 Subject: [PATCH] Remove code in environment_config.py which was calling `write_default_server_config_to_file()` This was causing an error in the unit tests, and is handled in monkey_island.py (commit 3de620e3). --- monkey/monkey_island/cc/environment/environment_config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/monkey/monkey_island/cc/environment/environment_config.py b/monkey/monkey_island/cc/environment/environment_config.py index 5befa202b..b013bdcf3 100644 --- a/monkey/monkey_island/cc/environment/environment_config.py +++ b/monkey/monkey_island/cc/environment/environment_config.py @@ -2,10 +2,8 @@ from __future__ import annotations import json import os -from pathlib import Path from typing import Dict, List -import monkey_island.cc.environment.server_config_generator as server_config_generator from monkey_island.cc.environment.user_creds import UserCreds from monkey_island.cc.resources.auth.auth_user import User from monkey_island.cc.resources.auth.user_store import UserStore @@ -24,8 +22,6 @@ class EnvironmentConfig: def _load_from_file(self, file_path): file_path = os.path.expanduser(file_path) - if not Path(file_path).is_file(): - server_config_generator.write_default_server_config_to_file(file_path) with open(file_path, "r") as f: config_content = f.read()