CmdRunner: missing parameter for get_best_parsable_locale() (#8929)

* CmdRunner: missing parameter for get_best_parsable_locale()

* add changelog frag
pull/8937/head
Alexei Znamensky 2024-09-26 18:49:15 +12:00 committed by GitHub
parent d356e255e0
commit 4700accbff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
bugfixes:
- cmd_runner module utils - call to ``get_best_parsable_locales()`` was missing parameter (https://github.com/ansible-collections/community.general/pull/8929).

View File

@ -239,7 +239,7 @@ class CmdRunner(object):
self.check_rc = check_rc self.check_rc = check_rc
if force_lang == "auto": if force_lang == "auto":
try: try:
self.force_lang = get_best_parsable_locale() self.force_lang = get_best_parsable_locale(module)
except RuntimeWarning: except RuntimeWarning:
self.force_lang = "C" self.force_lang = "C"
else: else: