This repository was archived by the owner on Dec 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def generate_id(object_ids):
216216 data = {"objects" : object_ids }
217217 data = canonicalize (data , utf8 = False )
218218 id = str (uuid .uuid5 (uuid .UUID ("00abedb4-aa42-466c-9c01-fed23315a9b7" ), data ))
219- return "observed-datae --" + id
219+ return "observed-data --" + id
220220
221221 """
222222 List ObservedData objects
Original file line number Diff line number Diff line change @@ -428,14 +428,18 @@ def extract_embedded_relationships(
428428 )
429429 self .mapping_cache [url ] = {"id" : external_reference_id }
430430 external_references_ids .append (external_reference_id )
431- if stix_object ["type" ] in [
432- "threat-actor" ,
433- "intrusion-set" ,
434- "campaign" ,
435- "incident" ,
436- "malware" ,
437- "relationship" ,
438- ] and (types is not None and "external-reference-as-report" in types ):
431+ if (
432+ stix_object ["type" ]
433+ in [
434+ "threat-actor" ,
435+ "intrusion-set" ,
436+ "campaign" ,
437+ "incident" ,
438+ "malware" ,
439+ "relationship" ,
440+ ]
441+ and (types is not None and "external-reference-as-report" in types )
442+ ):
439443 # Add a corresponding report
440444 # Extract date
441445 try :
You can’t perform that action at this time.
0 commit comments