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.pull/22/head
parent
3854d829e1
commit
a718da7016
|
@ -74,7 +74,7 @@ def post_stix(manager, content_block, collection_ids, service_id):
|
||||||
# But I don't wanna read docs
|
# But I don't wanna read docs
|
||||||
if (len(package.attributes) > 0):
|
if (len(package.attributes) > 0):
|
||||||
log.info("Uploading event to MISP with attributes %s", [x.value for x in package.attributes])
|
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:
|
else:
|
||||||
log.info("No attributes, not bothering.")
|
log.info("No attributes, not bothering.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue