BB: Monkey object uses _id

This commit is contained in:
Ilija Lazoroski 2022-07-26 16:30:19 +02:00
parent 371b020542
commit 7ccab8e2f2
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class MonkeyLog(object):
self.log_dir_path = log_dir_path self.log_dir_path = log_dir_path
def download_log(self, island_client): 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: if not log:
LOGGER.error("Log for monkey {} not found".format(self.monkey["ip_addresses"][0])) LOGGER.error("Log for monkey {} not found".format(self.monkey["ip_addresses"][0]))
return False return False