Update yeti.py

update relation
pull/488/head
Sebdraven 2021-03-19 14:32:00 +01:00
parent 9eb41f4022
commit 0a364cf815
1 changed files with 2 additions and 3 deletions

View File

@ -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)