fix: [stix import] Updated one condition test to avoid failing with Custom Objects

pull/4075/head
chrisr3d 2019-01-25 16:36:57 +01:00
parent e9dce4f646
commit bf04db3e11
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -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: