Skip to content

Commit

Permalink
fix: [stix2 import] Setting single_event when parsing a bundle with…
Browse files Browse the repository at this point in the history
… a single report/grouping, to avoid issues raised with multiple reports/groupings handling methods
  • Loading branch information
chrisr3d committed Feb 23, 2024
1 parent 7fabbca commit 5204e7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misp_stix_converter/stix2misp/stix2_to_misp.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ def _parse_bundle_with_no_report(self):
self._handle_unparsed_content()

def _parse_bundle_with_single_report(self):
self.__single_event = True
if hasattr(self, '_report') and self._report is not None:
for report in self._report.values():
self.__misp_event = self._misp_event_from_report(report)
Expand Down

0 comments on commit 5204e7a

Please sign in to comment.