From 0a364cf815e5f16fcf75dcb8246d68832010a2a3 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Fri, 19 Mar 2021 14:32:00 +0100 Subject: [PATCH] Update yeti.py update relation --- 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 f44f2d6..199b5cf 100644 --- a/misp_modules/modules/expansion/yeti.py +++ b/misp_modules/modules/expansion/yeti.py @@ -96,12 +96,11 @@ class Yeti(): attr_misp['object_relation'].update({'type': 'text', 'object_relation': 'ip'}) elif 'domain' == typ_attribute: - attr_misp.update({'type': 'text', + attr_misp.update({'type': 'domain', 'object_relation': 'domain'}) elif 'hostname' == typ_attribute: - attr_misp.update({'type': 'text', + attr_misp.update({'type': 'domain', 'object_relation': 'domain'}) - attr_misp['type'] = 'domain' else: attr_misp['object_relation'] = None print('Attribute %s' % attr_misp)