mirror of https://github.com/MISP/MISP
fix: [stix import] Updated one condition test to avoid failing with Custom Objects
parent
e9dce4f646
commit
bf04db3e11
|
@ -887,7 +887,7 @@ class StixFromMISPParser(StixParser):
|
|||
def fill_misp_object(self, item, name, to_ids=False):
|
||||
uuid = self.fetch_uuid(item.id_)
|
||||
if any(((hasattr(item, 'observable') and hasattr(item.observable, 'observable_composition')),
|
||||
hasattr(item, 'observable_composition'))):
|
||||
(hasattr(item, 'observable_composition') and item.observable_composition))):
|
||||
misp_object = MISPObject(name)
|
||||
misp_object.uuid = uuid
|
||||
if to_ids:
|
||||
|
|
Loading…
Reference in New Issue