mirror of https://github.com/MISP/PyMISP
Merge pull request #15 from iglocska/master
Dump the entire event including the 'Event' container elementpull/2/merge
commit
9696466683
|
@ -20,10 +20,10 @@ def get_event(m, event, out=None):
|
|||
result = m.get_event(event)
|
||||
r = result.json()
|
||||
if out is None:
|
||||
print(json.dumps(r['Event']) + '\n')
|
||||
print(json.dumps(r) + '\n')
|
||||
else:
|
||||
with open(out, 'w') as f:
|
||||
f.write(json.dumps(r['Event']) + '\n')
|
||||
f.write(json.dumps(r) + '\n')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue