Skip to content

Commit a47e39a

Browse files
author
Samuel Hassine
committed
[client] No mapping cache clear
1 parent 3ffa5a3 commit a47e39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/utils/opencti_stix2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def import_object(self, stix_object, update=False, types=None):
348348
}
349349

350350
# Update created by ref
351-
if created_by_ref_id is not None and stix_object['type'] != 'marking-definition':
351+
if update and created_by_ref_id is not None and stix_object['type'] != 'marking-definition':
352352
self.opencti.stix_entity.update_created_by_ref(
353353
id=stix_object_result['id'],
354354
entity=stix_object_result,

0 commit comments

Comments
 (0)