mirror of https://github.com/MISP/misp-modules
fix: Fixed output format to match with the recent changes on modules
parent
29e681ef81
commit
df7047dff0
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue