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

Commit ce91d3d

Browse files
author
Samuel Hassine
committed
[api_client] Import identities listed in the entities types
1 parent 06656ba commit ce91d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/opencti_stix2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ def import_bundle(self, stix_bundle, update=False, types=[]):
11611161

11621162
start_time = time.time()
11631163
for item in stix_bundle['objects']:
1164-
if item['type'] == 'identity' and (len(types) == 0 or 'identity' in types):
1164+
if item['type'] == 'identity' and (len(types) == 0 or 'identity' in types or item['x_opencti_identity_type'] in types):
11651165
self.import_object(item, update)
11661166
end_time = time.time()
11671167
logging.info("Identities imported in: %ssecs" % round(end_time - start_time))

0 commit comments

Comments
 (0)