opsgenie_teams
with 'opsgenie_teams_args' overwrites the configured value once it's parsed
#1540
Labels
bug
Something isn't working
Similar to a situation described in this discussion: #534 the following line of code: https://github.com/jertel/elastalert2/blob/master/elastalert/alerters/opsgenie.py#L72 parses args, and then overwrites
self.teams
. Next time the alert triggers, args are no longer parsed and instead, the result of first parsing is used.For example, the following rule config:
will mean that the first alert will correctly evaluate the owning team from a field in the match (let's say
Infrastructure
), but each subsequent alert execution will have theself.teams
set to:and will no longer be evaluated
I think the following fixes it:
https://github.com/jertel/elastalert2/pull/1539/files
There's potentially a similar issue with recipients.
The text was updated successfully, but these errors were encountered: