island: Add typehint to create_default_server_config_file()
Co-authored-by: Shreya Malviya <shreya.malviya@gmail.com>
This commit is contained in:
parent
0cd9709b82
commit
2b1af17433
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue