fix: [stix export] Fixed function header missing self attribute

pull/3844/head
chrisr3d 2018-11-03 20:04:48 +01:00
parent eae548d4b6
commit 73910135f2
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 2 deletions

View File

@ -1293,8 +1293,7 @@ class StixBuilder(object):
hi.journal_entry = entry_line
self.history.append(hi)
@staticmethod
def add_reference(reference):
def add_reference(self, reference):
if hasattr(self.incident.information_source, 'references'):
try:
self.incident.information_source.add_reference(reference)