mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Update awxkit random_title setting non_ascii to False
This commit is contained in:
parent
80053cea83
commit
bf70200550
@ -276,6 +276,8 @@ def random_utf8(*args, **kwargs):
|
||||
|
||||
|
||||
def random_title(num_words=2, non_ascii=True):
|
||||
if os.getenv('AWXKIT_FORCE_ONLY_ASCII', False):
|
||||
non_ascii=False
|
||||
base = ''.join([random.choice(words) for word in range(num_words)])
|
||||
if non_ascii:
|
||||
title = ''.join([base, random_utf8(1)])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user