Skip to content

Commit

Permalink
Fixes #335: Cortex passes an empty list as name instead of None.
Browse files Browse the repository at this point in the history
  • Loading branch information
3c7 committed Sep 12, 2018
1 parent ec4cfc7 commit 83f5b66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analyzers/MISP/misp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ def __init__(self):
Analyzer.__init__(self)

# Fixes #94. Instead of None, the string Unnamed should be passed to MISPClient constructor
name = self.get_param('config.name', 'Unnamed')
name = self.get_param('config.name', None)
if not name or len(name) == 0:
name = 'Unnamed'
if self.get_param('config.cert_check', True):
ssl_path = self.get_param('config.cert_path', None)
if not ssl_path or ssl_path == '':
Expand Down

0 comments on commit 83f5b66

Please sign in to comment.