Update yeti.py

test tags
pull/488/head
Sebdraven 2021-04-19 17:19:23 +02:00
parent ee7c065795
commit f7ca8bf140
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Yeti():
if not object_misp_url and not object_misp_url: if not object_misp_url and not object_misp_url:
attr = self.__get_attribute(obs_to_add) attr = self.__get_attribute(obs_to_add)
if attr: if attr:
self.misp_event.add_attribute(attr.type, attr.value, tags=attr.tags) self.misp_event.add_attribute(attr.type, attr.value, tags=['test','toto'])
def get_result(self): def get_result(self):
event = json.loads(self.misp_event.to_json()) event = json.loads(self.misp_event.to_json())