From 2b1af17433b5422bdbd975288ffbdb4ec02fbc15 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 7 Jun 2021 06:39:05 -0400 Subject: [PATCH] island: Add typehint to create_default_server_config_file() Co-authored-by: Shreya Malviya --- monkey/monkey_island/cc/environment/server_config_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/environment/server_config_handler.py b/monkey/monkey_island/cc/environment/server_config_handler.py index b2f4883c0..363b7c2e6 100644 --- a/monkey/monkey_island/cc/environment/server_config_handler.py +++ b/monkey/monkey_island/cc/environment/server_config_handler.py @@ -6,7 +6,7 @@ from monkey_island.cc.server_utils.consts import DEFAULT_SERVER_CONFIG_PATH, SER from monkey_island.cc.setup.island_config_options import IslandConfigOptions -def create_default_server_config_file(data_dir) -> None: +def create_default_server_config_file(data_dir: str) -> str: config_file_path = os.path.join(data_dir, SERVER_CONFIG_FILENAME) if not os.path.isfile(config_file_path): write_default_server_config_to_file(config_file_path)