Skip to content

Commit

Permalink
#21 fix json issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed May 3, 2017
1 parent 7196b82 commit 52bea41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/misp-modules-loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run(argv):
sys.exit()

elif opt in ('-l', '--list'):
print(modules)
print(json.dumps(modules))
sys.exit(0)

elif opt in ('-r', '--run'):
Expand All @@ -51,7 +51,7 @@ def run(argv):
elif opt in ('-i','--info'):
module = arg

print(({'name': module, 'mispattributes': mhandlers[module].mispattributes,
print(json.dumps({'name': module, 'mispattributes': mhandlers[module].mispattributes,
'moduleinfo':mhandlers[module].moduleinfo}))


Expand Down

0 comments on commit 52bea41

Please sign in to comment.