Skip to content

Commit

Permalink
Simplifying how to use the default policy
Browse files Browse the repository at this point in the history
  • Loading branch information
javier_marcos committed Nov 16, 2017
1 parent 84dc0ca commit 8cb7b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream_alert/alert_processor/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def _incident_assignment(self, context):
return 'assignments', [{'assignee': user_assignee}]

# If escalation policy was not provided, use default one
policy_to_assign = context.get('assigned_policy') or self._escalation_policy
policy_to_assign = context.get('assigned_policy', self._escalation_policy)

# Verify escalation policy, return tuple
return 'escalation_policy', self._policy_verify(policy_to_assign, self._escalation_policy)
Expand Down

0 comments on commit 8cb7b02

Please sign in to comment.