mirror of https://github.com/MISP/MISP
fix: [stix2 import] Avoid error on fetching relationship by uuid
- Fixes an issue that did not put (for instance) Galaxies on attribute level within the attribute because of the uuid fetching errorpull/3995/head
parent
755935d294
commit
735bd72e9e
|
@ -309,7 +309,7 @@ class StixParser():
|
|||
if uuid in self.relationship:
|
||||
galaxies = []
|
||||
for reference in self.relationship[uuid]:
|
||||
target = reference.target_ref
|
||||
target = reference.target_ref.split('--')[1]
|
||||
if target in self.galaxy:
|
||||
galaxy = self.galaxy[target]
|
||||
galaxies.append(self.parse_external_galaxy(galaxy['object']))
|
||||
|
|
Loading…
Reference in New Issue