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

Commit 5a1d199

Browse files
author
Samuel Hassine
committed
[client] Fix location scope
1 parent c36c424 commit 5a1d199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ def import_bundle(self, stix_bundle, update=False, types=None) -> List:
15621562
self.import_object(item, update, types)
15631563
elif item["type"] == "location":
15641564
if "x_opencti_location_type" in item:
1565-
if item["x_opencti_location_type"] in types:
1565+
if item["x_opencti_location_type"].lower() in types:
15661566
self.import_object(item, update, types)
15671567
imported_elements.append({"id": item["id"], "type": item["type"]})
15681568

0 commit comments

Comments
 (0)