forked from p15670423/monkey
* mistaken _ with -...
This commit is contained in:
parent
e24e9b90f7
commit
1339ab723f
|
@ -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']})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue