elastalert
elastalert copied to clipboard
Indentation issue in JiraAlerter causing useless requests
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