Skip to content

Commit

Permalink
Merge branch 'parser_feature' of github.com:MISP/misp-stix into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3d committed Oct 15, 2024
2 parents cbb9e86 + 9c20ab8 commit 4346463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1106,13 +1106,13 @@ def _parse_yara_pattern(self, indicator: _INDICATOR_TYPING):

def _unknown_pattern_mapping_warning(
self, indicator_id: str, pattern_types: GeneratorType):
self._add_warning(
self.main_parser._add_warning(
f'Unable to map pattern from the Indicator with id {indicator_id}, '
f"containing the following types: {', '.join(pattern_types)}"
)

def _unmapped_pattern_warning(self, indicator_id: str, feature: str):
self._add_warning(
self.main_parser._add_warning(
'Unmapped pattern part in indicator with id '
f'{indicator_id}: {feature}'
)
Expand Down
4 changes: 2 additions & 2 deletions misp_stix_converter/stix2misp/stix2_to_misp.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def _parse_analyst_note(note: Note) -> dict:
if hasattr(note, 'abstract'):
note_dict['comment'] = note.abstract
if hasattr(note, 'authors'):
note_dict['authors'] = note.authors
note_dict['authors'] = ', '.join(note.authors)
if hasattr(note, 'lang'):
note_dict['language'] = note.lang
return note_dict
Expand All @@ -746,7 +746,7 @@ def _parse_analyst_opinion(opinion: Opinion) -> dict:
'created': opinion.created, 'modified': opinion.modified
}
if hasattr(opinion, 'authors'):
opinion_dict['authors'] = opinion.authors
opinion_dict['authors'] = ', '.join(opinion.authors)
return opinion_dict

############################################################################
Expand Down

0 comments on commit 4346463

Please sign in to comment.