Skip to content

Commit e68ba80

Browse files
committed
[worker] change stix_object_max_refs default value & report expectation dropped bundles
1 parent cfcd128 commit e68ba80

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
@@ -3089,6 +3089,16 @@ def import_bundle(
30893089
+ " is incompatible and couldn't be processed",
30903090
},
30913091
)
3092+
for too_large_elements_bundle in too_large_elements_bundles:
3093+
self.opencti.work.report_expectation(
3094+
work_id,
3095+
{
3096+
"error": "Incompatible element in bundle",
3097+
"source": "Element "
3098+
+ too_large_elements_bundle["id"]
3099+
+ " is incompatible and couldn't be processed",
3100+
},
3101+
)
30923102

30933103
# Import every element in a specific order
30943104
imported_elements = []

0 commit comments

Comments
 (0)