Skip to content

Commit

Permalink
Use same variable names as testing environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jul 1, 2016
1 parent 13e0cd0 commit 836845a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/events/create_massive_dummy_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
# -*- coding: utf-8 -*-

from pymisp import PyMISP
from keys import misp_url, misp_key, misp_verifycert
from keys import url, key
import argparse
import tools

def init(url, key):
return PyMISP(url, key, misp_verifycert, 'json')

if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Create a given number of event containing a given number of attributes eachh.')
parser.add_argument("-l", "--limit", type=int, help="Number of events to create (default 1)")
parser.add_argument("-a", "--attribute", type=int, help="Number of attributes per event (default 3000)")
args = parser.parse_args()

misp = init(misp_url, misp_key)
misp = PyMISP(url, key, True, 'json')

if args.limit is None:
args.limit = 1
Expand Down

0 comments on commit 836845a

Please sign in to comment.