mirror of https://github.com/MISP/PyMISP
parent
5afdcb5709
commit
bd74a11e2f
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
"""Python API using the REST interface of MISP"""
|
"""Python API using the REST interface of MISP"""
|
||||||
|
|
||||||
|
import copy
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import datetime
|
import datetime
|
||||||
|
@ -278,7 +279,7 @@ class PyMISP(object):
|
||||||
"""Transform a Json MISP event into a MISPEvent"""
|
"""Transform a Json MISP event into a MISPEvent"""
|
||||||
if not isinstance(event, MISPEvent):
|
if not isinstance(event, MISPEvent):
|
||||||
e = MISPEvent(self.describe_types)
|
e = MISPEvent(self.describe_types)
|
||||||
e.load(event)
|
e.load(copy.copy(event))
|
||||||
else:
|
else:
|
||||||
e = event
|
e = event
|
||||||
return e
|
return e
|
||||||
|
|
Loading…
Reference in New Issue