Skip to content

Commit 7688e81

Browse files
committed
[worker] change stix_object_max_refs default value & report expectation dropped bundles
1 parent 13013f1 commit 7688e81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,6 +3095,16 @@ def import_bundle(
30953095
+ " is incompatible and couldn't be processed",
30963096
},
30973097
)
3098+
for too_large_elements_bundle in too_large_elements_bundles:
3099+
self.opencti.work.report_expectation(
3100+
work_id,
3101+
{
3102+
"error": "Incompatible element in bundle",
3103+
"source": "Element "
3104+
+ too_large_elements_bundle["id"]
3105+
+ " is incompatible and couldn't be processed",
3106+
},
3107+
)
30983108

30993109
# Import every element in a specific order
31003110
imported_elements = []

0 commit comments

Comments
 (0)