forked from p15670423/monkey
BB: Monkey object uses _id
This commit is contained in:
parent
371b020542
commit
7ccab8e2f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue