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

Commit 12a4c27

Browse files
committed
fixed conflict related to commit e1c3cc9
1 parent 70ced15 commit 12a4c27

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
@@ -1206,7 +1206,7 @@ def import_bundle(self, stix_bundle, update=False, types=[]):
12061206

12071207
start_time = time.time()
12081208
for item in stix_bundle['objects']:
1209-
if item['type'] == 'identity' and (len(types) == 0 or 'identity' in types or ('x_opencti_identity_type' in item and item['x_opencti_identity_type'] in types)):
1209+
if item['type'] == 'identity' and (len(types) == 0 or 'identity' in types or (CustomProperties.IDENTITY_TYPE in item and item[CustomProperties.IDENTITY_TYPE] in types)):
12101210
self.import_object(item, update)
12111211
end_time = time.time()
12121212
logging.info("Identities imported in: %ssecs" % round(end_time - start_time))

0 commit comments

Comments
 (0)