Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
7.99k stars 1.74k forks source link

Remove the forgotten code of new_style_string_format #3139

Closed nsano-rururu closed 3 years ago

nsano-rururu commented 3 years ago

At the next commit, the process of branching with the value of new_style_string_format disappears, so it seems that you forgot to delete the following code. https://github.com/Yelp/elastalert/commit/ca82ece621e1d2248bbe7d42d63941f34da53e00#diff-93c4ac73b454d85d4631ec52accb336d3cc319ada04dfa64ad14bc7242294c09

elastalert/alerts.py

        self.new_style_string_format = False
        if 'new_style_string_format' in self.rule and self.rule['new_style_string_format']:
            self.new_style_string_format = True