island: Add typehint to create_default_server_config_file()

Co-authored-by: Shreya Malviya <shreya.malviya@gmail.com>
This commit is contained in:
Mike Salvatore 2021-06-07 06:39:05 -04:00 committed by GitHub
parent 0cd9709b82
commit 2b1af17433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)