fix: [MISP export] misp response parsing

This commit is contained in:
Terrtia 2020-02-21 15:09:16 +01:00
parent b04b3dcfa2
commit 32b023165a
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -390,8 +390,8 @@ def create_misp_event(event, distribution=0, threat_level_id=4, publish=False, a
def extract_event_metadata(event):
event_metadata = {}
event_metadata['uuid'] = event.uuid
event_metadata['id'] = event.id
event_metadata['uuid'] = event['Event']['uuid']
event_metadata['id'] = event['Event']['id']
if misp_url[-1] == '/':
event_metadata['url'] = misp_url + 'events/view/' + str(event_metadata['id'])
else: