elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Indentation issue in JiraAlerter causing useless requests

Open Salaander opened this issue 7 years ago • 0 comments

Am I thinking it correctly, that this if block is indented more than it should be? It gets called for each match on the same ticket but luckily the effect is idempotent so it does not cause any issue, but it generates N-1 numbers of extra useless HTTP requests where N is the number of matches.

https://github.com/Yelp/elastalert/blob/5fe946b3877f4a25feb0c46f609b6125cc87f444/elastalert/alerts.py#L797

Salaander avatar Feb 12 '19 11:02 Salaander