Update yeti.py

change logs
pull/488/head
Sebdraven 2021-03-19 15:37:49 +01:00
parent 6b35a7ee4d
commit 76133ace8b
1 changed files with 3 additions and 1 deletions

View File

@ -73,10 +73,12 @@ class Yeti():
object_misp = self.get_object(obs_to_add)
if object_misp:
self.misp_event.add_object(object_misp)
print('Event MISP %s' % self.misp_event.to_json())
def get_result(self):
event = json.loads(self.misp_event.to_json())
results = {key: event[key] for key in ('Attribute', 'Object')}
print('results '% results)
return results
def get_object(self, obj_to_add):