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

Commit d243133

Browse files
authored
[client-python] Export bug fix: exports of contained Analysis
1 parent 7a65e47 commit d243133

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,17 @@ def export_list(
19351935
filters = [{"key": "entity_type", "values": [entity_type]}]
19361936
entity_type = "Stix-Cyber-Observable"
19371937

1938+
if entity_type == "Analysis":
1939+
if filters is not None:
1940+
filters.append(
1941+
{"key": "entity_type", "values": ["Report", "Grouping", "Note", "Observed-Data", "Opinion"]}
1942+
)
1943+
else:
1944+
filters = [
1945+
{"key": "entity_type", "values": ["Report", "Grouping", "Note", "Observed-Data", "Opinion"]}
1946+
]
1947+
entity_type = "Stix-Domain-Object"
1948+
19381949
# List
19391950
lister = {
19401951
"Stix-Core-Object": self.opencti.stix_core_object.list,

0 commit comments

Comments
 (0)