From dfa46b551a0c56c9788c45ee7dd460254a390391 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Tue, 20 Apr 2021 13:55:36 +0200 Subject: [PATCH] Update yeti.py change params --- misp_modules/modules/expansion/yeti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misp_modules/modules/expansion/yeti.py b/misp_modules/modules/expansion/yeti.py index 9ae29c7..7dddf2e 100644 --- a/misp_modules/modules/expansion/yeti.py +++ b/misp_modules/modules/expansion/yeti.py @@ -145,8 +145,8 @@ class Yeti(): def __get_object_ns_record(self, obj_to_add): object_dns_record = MISPObject('dns-record') - object_dns_record.add_attribute(self.attribute['value'], 'queried_domain') - object_dns_record.add_attribute(obj_to_add['value', 'ns-record']) + object_dns_record.add_attribute('queried_domain', self.attribute['value']) + object_dns_record.add_attribute('ns-record', obj_to_add['value']) object_dns_record.add_reference(self.attribute['uuid'], 'related_to') return object_dns_record