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

Commit 3d21add

Browse files
committed
[client] Fix export of entity in the library (#257)
1 parent fdde10f commit 3d21add

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,8 @@ def prepare_export(
14831483
# Map types
14841484
if entity_object["entity_type"] == "StixFile":
14851485
entity_object["entity_type"] = "File"
1486-
elif IdentityTypes.has_value(entity_object["entity_type"]):
1486+
1487+
if IdentityTypes.has_value(entity_object["entity_type"]):
14871488
entity_object["entity_type"] = "Identity"
14881489
elif LocationTypes.has_value(entity_object["entity_type"]):
14891490
entity_object["entity_type"] = "Location"

0 commit comments

Comments
 (0)