Skip to content

Commit

Permalink
cc: use DEFAULT_SERVER_CONFIG_PATH in set_server_config
Browse files Browse the repository at this point in the history
  • Loading branch information
mssalvatore committed Feb 10, 2021
1 parent 177f25d commit de8ba4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monkey/monkey_island/cc/environment/set_server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -26,7 +26,7 @@ def add_monkey_dir_to_sys_path():

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)
Expand Down

0 comments on commit de8ba4f

Please sign in to comment.