* mistaken _ with -...

This commit is contained in:
maor.rayzin 2018-11-29 15:48:41 +02:00
parent e24e9b90f7
commit 1339ab723f
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class Telemetry(flask_restful.Resource):
wmi_handler = WMIHandler(monkey_id, telemetry_json['data']['wmi'], users_secrets) wmi_handler = WMIHandler(monkey_id, telemetry_json['data']['wmi'], users_secrets)
wmi_handler.process_and_handle_wmi_info() wmi_handler.process_and_handle_wmi_info()
if 'aws' in telemetry_json['data']: if 'aws' in telemetry_json['data']:
if 'instance-id' in telemetry_json['data']['aws']: if 'instance_id' in telemetry_json['data']['aws']:
mongo.db.monkey.update_one({'_id': monkey_id}, mongo.db.monkey.update_one({'_id': monkey_id},
{'aws_instance_id': telemetry_json['data']['aws']['instance-id']}) {'aws_instance_id': telemetry_json['data']['aws']['instance-id']})