From 5bc061a6585d9e1ba29145cd1cdcf1833a0091b9 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Fri, 11 Oct 2019 21:09:34 +0300 Subject: [PATCH] Fixed cause for exception - bad JSON field access. Guid instead of id. --- .../cc/services/telemetry/processing/system_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/telemetry/processing/system_info.py b/monkey/monkey_island/cc/services/telemetry/processing/system_info.py index a970c0cd4..17d494729 100644 --- a/monkey/monkey_island/cc/services/telemetry/processing/system_info.py +++ b/monkey/monkey_island/cc/services/telemetry/processing/system_info.py @@ -102,4 +102,4 @@ def process_aws_data(telemetry_json): def update_db_with_new_hostname(telemetry_json): - Monkey.get_single_monkey_by_id(telemetry_json['_id']).set_hostname(telemetry_json['data']['hostname']) + Monkey.get_single_monkey_by_guid(telemetry_json['monkey_guid']).set_hostname(telemetry_json['data']['hostname'])