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

Commit 68997f5

Browse files
committed
[client] Generate id of relationships
1 parent 17cf580 commit 68997f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pycti/entities/opencti_stix_core_relationship.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,13 @@ def generate_id(
353353
"start_time": start_time,
354354
"stop_time": stop_time,
355355
}
356+
elif start_time is not None:
357+
data = {
358+
"relationship_type": relationship_type,
359+
"source_ref": source_ref,
360+
"target_ref": target_ref,
361+
"start_time": start_time,
362+
}
356363
else:
357364
data = {
358365
"relationship_type": relationship_type,

0 commit comments

Comments
 (0)