mirror of https://github.com/MISP/MISP
fix: [stix2 export] Make Relationship objects happy with relationship types
parent
25003e13ae
commit
f1b1042784
|
@ -123,8 +123,8 @@ class StixBuilder():
|
|||
target = '{}--{}'.format(self.ids[target_uuid], target_uuid)
|
||||
except KeyError:
|
||||
continue
|
||||
relationship = Relationship(source_ref=source, relationship_type=relationship_type,
|
||||
target_ref=target, interoperability=True)
|
||||
relationship = Relationship(source_ref=source, target_ref=target, interoperability=True,
|
||||
relationship_type=relationship_type.strip())
|
||||
self.append_object(relationship, id_mapping=False)
|
||||
|
||||
def __set_identity(self):
|
||||
|
|
Loading…
Reference in New Issue