Fixed cause for exception - bad JSON field access.

Guid instead of id.
This commit is contained in:
Shay Nehmad 2019-10-11 21:09:34 +03:00
parent 6c5c6e59bd
commit 5bc061a658
1 changed files with 1 additions and 1 deletions

View File

@ -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'])