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

Commit 36bad38

Browse files
authored
[client-python] Fix exporting a container (#opencti/7332)
1 parent 4c182df commit 36bad38

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,19 +1661,6 @@ def prepare_export(
16611661
objects_to_get = []
16621662
relations_to_get = []
16631663

1664-
# Container
1665-
if "objects" in entity and len(entity["objects"]) > 0:
1666-
object_ids = list(map(lambda e: e["standard_id"], entity["objects"]))
1667-
export_query_filter = self.prepare_id_filters_export(
1668-
id=object_ids, access_filter=access_filter
1669-
)
1670-
filtered_objects = (
1671-
self.opencti.opencti_stix_object_or_stix_relationship.list(
1672-
filters=export_query_filter, getAll=True
1673-
)
1674-
)
1675-
entity["objects"] = filtered_objects
1676-
16771664
# CreatedByRef
16781665
if (
16791666
not no_custom_attributes

0 commit comments

Comments
 (0)