From a718da70169767fe8d58d7e518dcd56ebc18b82b Mon Sep 17 00:00:00 2001 From: davidonzo Date: Fri, 20 Oct 2017 14:47:44 +0200 Subject: [PATCH] Fix for "no attribute '_json_full'" error Fix for "'MISPEvent' object has no attribute '_json_full'" error. Now events are created in MISP as desired. --- misp_taxii_hooks/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp_taxii_hooks/hooks.py b/misp_taxii_hooks/hooks.py index 7d3786c..3c1f3a2 100644 --- a/misp_taxii_hooks/hooks.py +++ b/misp_taxii_hooks/hooks.py @@ -74,7 +74,7 @@ def post_stix(manager, content_block, collection_ids, service_id): # But I don't wanna read docs if (len(package.attributes) > 0): log.info("Uploading event to MISP with attributes %s", [x.value for x in package.attributes]) - MISP.add_event(package._json_full()) + MISP.add_event(package) else: log.info("No attributes, not bothering.")