pull/498/head
Sebdraven 2021-04-30 15:46:59 +02:00
parent 73ea9620bf
commit 16f9ec9f6d
1 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@ class OnypheClient:
objet_domain_ip.add_attribute(relation, obs)
relation_attr = self.__get_relation_attribute()
if relation_attr:
objet_domain_ip.add_attribute(relation, self.attribute['value'])
objet_domain_ip.add_reference(self.attribute['uuid'], 'related-to')
self.misp_event.add_object(objet_domain_ip)
objet_domain_ip.add_attribute(relation_attr, self.attribute['value'])
objet_domain_ip.add_reference(self.attribute['uuid'], 'related-to')
self.misp_event.add_object(objet_domain_ip)
def __get_relation_attribute(self):