Skip to content

Commit 8205d53

Browse files
committed
Update elastalert-test-rule to use ascii_letters
1 parent 7d369e4 commit 8205d53

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)