Browse Source

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

pull/304/head
chrisr3d 3 years ago
parent
commit
df7047dff0
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 2
      misp_modules/modules/import_mod/goamlimport.py

2
misp_modules/modules/import_mod/goamlimport.py

@ -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…
Cancel
Save