Update yeti.py

value attribute
pull/488/head
Sebdraven 2021-03-19 15:32:05 +01:00
parent ed3e0d56fd
commit 6b35a7ee4d
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class Yeti():
domain_ip_object = MISPObject('domain-ip')
domain_ip_object.add_attribute(self.__get_relation(obj_to_add),
obj_to_add['value'])
domain_ip_object.add_attribute('ip', self.attribute)
domain_ip_object.add_attribute('ip', self.attribute['value'])
domain_ip_object.add_reference(self.attribute['uuid'], 'related_to')
return domain_ip_object