From 86275d7610d2f760297f9424bf14a4c2bb3e22ec Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Fri, 19 Mar 2021 14:38:34 +0100 Subject: [PATCH] Update yeti.py change modification --- misp_modules/modules/expansion/yeti.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/yeti.py b/misp_modules/modules/expansion/yeti.py index 199b5cf..f9ccec3 100644 --- a/misp_modules/modules/expansion/yeti.py +++ b/misp_modules/modules/expansion/yeti.py @@ -91,7 +91,7 @@ class Yeti(): def __get_attribute(self, obj_yeti): typ_attribute = self.misp_mapping[obj_yeti['type']] - attr_misp = {'type': typ_attribute, 'value': obj_yeti['value']} + attr_misp = {'value': obj_yeti['value']} if typ_attribute == 'ip-src' or typ_attribute == 'ip-dst': attr_misp['object_relation'].update({'type': 'text', 'object_relation': 'ip'}) @@ -101,8 +101,6 @@ class Yeti(): elif 'hostname' == typ_attribute: attr_misp.update({'type': 'domain', 'object_relation': 'domain'}) - else: - attr_misp['object_relation'] = None print('Attribute %s' % attr_misp) return attr_misp