From a57784fb05d59cf1660068cea265118e53b3db19 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Wed, 28 Apr 2021 18:36:39 +0200 Subject: [PATCH] fix: [stix2 export] Copy paste issue --- app/files/scripts/stix2/misp2stix2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/files/scripts/stix2/misp2stix2.py b/app/files/scripts/stix2/misp2stix2.py index ec18989e0..abd96d50e 100644 --- a/app/files/scripts/stix2/misp2stix2.py +++ b/app/files/scripts/stix2/misp2stix2.py @@ -65,7 +65,7 @@ class StixBuilder(): @staticmethod def _get_event(events): if events.get('response'): - return {'response': [event['Event'] if event.get('Event') else event for event in events]} + return {'response': [event['Event'] if event.get('Event') else event for event in events['response']]} return events['Event'] if events.get('Event') else events def _get_packages(self):