chg: [MISP export] save event uuid - global_id

This commit is contained in:
Terrtia 2020-02-21 14:42:18 +01:00
parent 988f71035d
commit cae4086208
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -241,6 +241,8 @@ def create_list_of_objs_to_export(l_obj, r_type='json'):
event.uuid = str(uuid.uuid4())
for obj_global_id in dict_misp_obj:
misp_obj = dict_misp_obj[obj_global_id]
AILObjects.create_map_obj_event_uuid(event.uuid, obj_global_id)
AILObjects.create_map_obj_uuid_golbal_id(event.uuid, obj_global_id)
if misp_obj:
# add object to event
event.add_object(dict_misp_obj[obj_global_id])