mirror of https://github.com/MISP/MISP
fix: Added missing parameter org to resolvAttributes() call in the stix exporter
parent
11b7e8e808
commit
4bb640ec8c
|
@ -119,7 +119,7 @@ def setDates(incident, date, published):
|
||||||
def resolveObjects(incident, ttps, objects, eventTags, org):
|
def resolveObjects(incident, ttps, objects, eventTags, org):
|
||||||
for obj in objects:
|
for obj in objects:
|
||||||
tmp_incident = Incident()
|
tmp_incident = Incident()
|
||||||
resolveAttributes(tmp_incident, ttps, obj["Attribute"], eventTags)
|
resolveAttributes(tmp_incident, ttps, obj["Attribute"], eventTags, org)
|
||||||
indicator = Indicator(timestamp=getDateFromTimestamp(int(obj["timestamp"])))
|
indicator = Indicator(timestamp=getDateFromTimestamp(int(obj["timestamp"])))
|
||||||
indicator.id_= namespace[1] + ":MispObject-" + obj["uuid"]
|
indicator.id_= namespace[1] + ":MispObject-" + obj["uuid"]
|
||||||
setProd(indicator, org)
|
setProd(indicator, org)
|
||||||
|
|
Loading…
Reference in New Issue