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

Commit c96421e

Browse files
committed
[client] Get properly report content
1 parent 1be516e commit c96421e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pycti/entities/opencti_report.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,12 @@ def import_from_stix2(self, **kwargs):
880880
stix_object["x_opencti_reliability"] = (
881881
self.opencti.get_attribute_in_extension("reliability", stix_object)
882882
)
883+
if "x_opencti_content" not in stix_object or "content" not in stix_object:
884+
stix_object["content"] = self.opencti.get_attribute_in_extension(
885+
"content", stix_object
886+
)
887+
if "x_opencti_content" in stix_object:
888+
stix_object["content"] = stix_object["x_opencti_content"]
883889

884890
return self.create(
885891
stix_id=stix_object["id"],

0 commit comments

Comments
 (0)