From dc40713683dd76419d680fd9eafe685650dd0cb4 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 2 Jun 2021 13:24:58 -0400 Subject: [PATCH] island: Rename launch_mongodb() -> start() --- monkey/monkey_island/cc/setup/mongo/mongo_db_process.py | 2 +- monkey/monkey_island/cc/setup/mongo/mongo_setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py b/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py index 4b0150d99..c8b043249 100644 --- a/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py +++ b/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py @@ -22,7 +22,7 @@ class MongoDbProcess: self.db_dir_parent_path = db_dir_parent_path self.logging_dir_path = logging_dir_path - def launch_mongodb(self): + def start(self): db_path = self._create_db_dir() self._start_mongodb_process(db_path) diff --git a/monkey/monkey_island/cc/setup/mongo/mongo_setup.py b/monkey/monkey_island/cc/setup/mongo/mongo_setup.py index 5accd6f65..b6e86a3e3 100644 --- a/monkey/monkey_island/cc/setup/mongo/mongo_setup.py +++ b/monkey/monkey_island/cc/setup/mongo/mongo_setup.py @@ -22,7 +22,7 @@ def start_mongodb(config_options: IslandConfigOptions): if config_options.start_mongodb: MongoDbProcess( db_dir_parent_path=config_options.data_dir, logging_dir_path=config_options.data_dir - ).launch_mongodb() + ).start() wait_for_mongo_db_server(MONGO_URL) assert_mongo_db_version(MONGO_URL) mongo_connector.connect_dal_to_mongodb()