fix: Fixed output format to match with the recent changes on modules

pull/304/head
chrisr3d 2019-05-14 10:50:11 +02:00
parent 29e681ef81
commit df7047dff0
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ def handler(q=False):
misperrors['error'] = "Impossible to read XML data"
return misperrors
aml_parser.parse_xml()
r = {'results': [obj.to_json() for obj in aml_parser.misp_event.objects]}
r = {'results': {'Object': [obj.to_json() for obj in aml_parser.misp_event.objects]}}
return r