Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit a5fafd4

Browse files
author
Samuel Hassine
committed
Fix related-to relations
1 parent a85f586 commit a5fafd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pycti/opencti.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,6 +3351,9 @@ def add_object_ref_to_report_if_not_exists(self, report_id, object_id):
33513351
return True
33523352

33533353
def resolve_role(self, relation_type, from_type, to_type):
3354+
if relation_type == 'related-to':
3355+
return {'from_role': 'relates_from', 'to_role': 'relates_to'}
3356+
33543357
relation_type = relation_type.lower()
33553358
from_type = from_type.lower()
33563359
to_type = to_type.lower()

0 commit comments

Comments
 (0)