mirror of https://github.com/MISP/misp-modules
parent
e0506ee31e
commit
e037c4c767
|
@ -101,7 +101,6 @@ class Yeti():
|
||||||
else:
|
else:
|
||||||
value = obs_to_add['value']
|
value = obs_to_add['value']
|
||||||
attr = self.misp_event.add_attribute(value=value, type=type_attr)
|
attr = self.misp_event.add_attribute(value=value, type=type_attr)
|
||||||
if obs_to_add['id'] in links:
|
|
||||||
attr.comment = '%s of %s' % (links[obs_to_add['id']], self.attribute['value'])
|
attr.comment = '%s of %s' % (links[obs_to_add['id']], self.attribute['value'])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logging.error('type not found %s' % obs_to_add['type'])
|
logging.error('type not found %s' % obs_to_add['type'])
|
||||||
|
|
Loading…
Reference in New Issue