Update yeti.py

change loop
pull/488/head
Sebdraven 2021-04-20 13:38:45 +02:00
parent bb1cd7c4de
commit cec06ed26d
1 changed files with 4 additions and 2 deletions

View File

@ -80,11 +80,13 @@ class Yeti():
object_misp_domain_ip = self.__get_object_domain_ip(obs_to_add) object_misp_domain_ip = self.__get_object_domain_ip(obs_to_add)
if object_misp_domain_ip: if object_misp_domain_ip:
self.misp_event.add_object(object_misp_domain_ip) self.misp_event.add_object(object_misp_domain_ip)
continue
object_misp_url = self.__get_object_url(obs_to_add) object_misp_url = self.__get_object_url(obs_to_add)
if object_misp_url: if object_misp_url:
self.misp_event.add_object(object_misp_url) self.misp_event.add_object(object_misp_url)
if not object_misp_url and not object_misp_url: continue
self.__get_attribute(obs_to_add, link)
self.__get_attribute(obs_to_add, link)
def get_result(self): def get_result(self):
event = json.loads(self.misp_event.to_json()) event = json.loads(self.misp_event.to_json())