File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -536,8 +536,6 @@ def extract_embedded_relationships(
536536 )
537537 if generated_ref_id is None :
538538 continue
539- if generated_ref_id in self .mapping_cache :
540- external_reference_id = self .mapping_cache [generated_ref_id ]
541539 else :
542540 external_reference_id = self .opencti .external_reference .create (
543541 source_name = source_name ,
@@ -582,7 +580,6 @@ def extract_embedded_relationships(
582580 "no_trigger_import" , False
583581 ),
584582 )
585- self .mapping_cache [generated_ref_id ] = generated_ref_id
586583 external_references_ids .append (external_reference_id )
587584 if stix_object ["type" ] in [
588585 "threat-actor" ,
@@ -713,8 +710,6 @@ def extract_embedded_relationships(
713710 )
714711 if generated_ref_id is None :
715712 continue
716- if generated_ref_id in self .mapping_cache :
717- external_reference_id = self .mapping_cache [generated_ref_id ]
718713 else :
719714 external_reference_id = self .opencti .external_reference .create (
720715 source_name = source_name ,
@@ -753,7 +748,6 @@ def extract_embedded_relationships(
753748 mime_type = file ["mime_type" ],
754749 no_trigger_import = file .get ("no_trigger_import" , False ),
755750 )
756- self .mapping_cache [generated_ref_id ] = generated_ref_id
757751 external_references_ids .append (external_reference_id )
758752 # Granted refs
759753 granted_refs_ids = []
You can’t perform that action at this time.
0 commit comments