fix: [stix2 export] Make Relationship objects happy with relationship types

pull/5216/head
chrisr3d 2019-09-23 12:02:01 +02:00
parent 25003e13ae
commit f1b1042784
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 2 deletions

View File

@ -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):