Skip to content

Commit

Permalink
Fixes behavior with empty alert handlers list
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-afedorov committed Jun 20, 2019
1 parent 5cc9dc1 commit b98a56b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runners/alert_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def main():
alert = alert_row['ALERT']
results = []

for handler in alert.get('HANDLERS') or ['jira']:
handlers = alert.get('HANDLERS')
for handler in ['jira'] if handlers is None else handlers:
if handler is None:
results.append(None)

Expand Down

0 comments on commit b98a56b

Please sign in to comment.