forked from p34709852/monkey
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).
This commit is contained in:
parent
b4708fc2cb
commit
9705c73978
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue