Update yeti.py

try typo
pull/488/head
Sebdraven 2021-04-19 12:20:25 +02:00
parent 53cc15adcd
commit 1e98f1d575
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class Yeti():
if (obj_to_add['type'] == 'Url' and self.attribute['type'] in ['hostname', 'domain', 'ip-src', 'ip-dst']) or (
obj_to_add['type'] in ('Hostname', 'Domain', 'Ip') and self.attribute['type'] == 'url'
):
url_object = MISPObject('Url')
url_object = MISPObject('url')
obj_relation = self.__get_relation(obj_to_add)
if obj_relation:
url_object.add_attribute(obj_relation, obj_to_add['value'])