From b46a3a8885169218498701ce0b1620e9a7ae307e Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Mon, 19 Apr 2021 13:47:45 +0200 Subject: [PATCH] Update yeti.py fix bugs key error --- misp_modules/modules/expansion/yeti.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/yeti.py b/misp_modules/modules/expansion/yeti.py index 96de599..c0004b0 100644 --- a/misp_modules/modules/expansion/yeti.py +++ b/misp_modules/modules/expansion/yeti.py @@ -103,11 +103,10 @@ class Yeti(): obj_relation = self.__get_relation(obj_to_add) if obj_relation: url_object.add_attribute(obj_relation, obj_to_add['value']) - obj_relation = self.__get_relation(self.attribute) + obj_relation = self.__get_relation(self.attribute, is_yeti_object=False) if obj_relation: - url_object.add_attribute(self.__get_relation(self.attribute, is_yeti_object=False), + url_object.add_attribute(obj_relation, self.attribute['value']) - url_object.add_reference(self.attribute['uuid'], 'related_to') print(url_object) return url_object