Skip to content

Commit

Permalink
fix: [stix2 import] Fixed Analyst Data authors fields that is a str…
Browse files Browse the repository at this point in the history
…ing in MISP
  • Loading branch information
chrisr3d committed Oct 15, 2024
1 parent 673a885 commit 9c20ab8
Showing 1 changed file with 2 additions and 2 deletions.
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 9c20ab8

Please sign in to comment.