diff options
author | Tiago <tiago.goes2009@gmail.com> | 2021-08-10 23:23:57 +0200 |
---|---|---|
committer | Tiago <tiago.goes2009@gmail.com> | 2021-08-11 18:38:30 +0200 |
commit | bf70200550ff551f2e1d2481455784e556caded4 (patch) | |
tree | cc0c4b048b52efbf3e2ea8819c4b36cfdd3f359b /awxkit | |
parent | Merge pull request #10845 from nixocio/ui_add_more_ids (diff) | |
download | awx-bf70200550ff551f2e1d2481455784e556caded4.tar.xz awx-bf70200550ff551f2e1d2481455784e556caded4.zip |
Update awxkit random_title setting non_ascii to False
Diffstat (limited to 'awxkit')
-rw-r--r-- | awxkit/awxkit/utils/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/awxkit/awxkit/utils/__init__.py b/awxkit/awxkit/utils/__init__.py index 3b7ee3399c..1c16f8b11d 100644 --- a/awxkit/awxkit/utils/__init__.py +++ b/awxkit/awxkit/utils/__init__.py @@ -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)]) |