Skip to content

Commit

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

elif opt in ('-l', '--list'):
print(json.dumps(modules))
sys.exit(0)
modules = [m for m in modules if mhandlers['type:' + m ] == "expansion"]
print(json.dumps(modules))
sys.exit(0)

elif opt in ('-r', '--run'):
module = arg
Expand Down

0 comments on commit fa9babd

Please sign in to comment.