Skip to content

Commit c6524a3

Browse files
authored
Merge pull request Yelp#2782 from ferozsalam/master
Update elastalert-test-rule to use ascii_letters
2 parents 7d369e4 + 8205d53 commit c6524a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elastalert/test_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def run_elastalert(self, rule, conf, args):
252252
used_ids = []
253253

254254
def get_id():
255-
_id = ''.join([random.choice(string.letters) for i in range(16)])
255+
_id = ''.join([random.choice(string.ascii_letters) for i in range(16)])
256256
if _id in used_ids:
257257
return get_id()
258258
used_ids.append(_id)

0 commit comments

Comments
 (0)