From 7ccab8e2f22883638b90f115eba76f4600a84714 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 26 Jul 2022 16:30:19 +0200 Subject: [PATCH] BB: Monkey object uses _id --- envs/monkey_zoo/blackbox/log_handlers/monkey_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envs/monkey_zoo/blackbox/log_handlers/monkey_log.py b/envs/monkey_zoo/blackbox/log_handlers/monkey_log.py index f49b199a1..2086accbe 100644 --- a/envs/monkey_zoo/blackbox/log_handlers/monkey_log.py +++ b/envs/monkey_zoo/blackbox/log_handlers/monkey_log.py @@ -12,7 +12,7 @@ class MonkeyLog(object): self.log_dir_path = log_dir_path def download_log(self, island_client): - log = island_client.find_log_in_db({"monkey_id": ObjectId(self.monkey["id"])}) + log = island_client.find_log_in_db({"monkey_id": ObjectId(self.monkey["_id"])}) if not log: LOGGER.error("Log for monkey {} not found".format(self.monkey["ip_addresses"][0])) return False