Little fix with 'info' field in Events

pull/2382/merge
chrisr3d 2017-12-01 17:38:49 +01:00
parent 8383ef2acf
commit d76421b0ba
1 changed files with 1 additions and 1 deletions

View File

@ -55,8 +55,8 @@ def buildMispDict(stixEvent):
mispDict["date"] = date
timestamp = getTimestampfromDate(stixTimestamp)
mispDict["timestamp"] = timestamp
mispDict["info"] = stixEvent["stix_header"].get("title")
event = stixEvent["incidents"][0]
mispDict["info"] = event.get("title")
orgSource = event["information_source"]["identity"]["name"]
mispDict["Org"] = {}
mispDict["Org"]["name"] = orgSource