diff --git a/changelogs/fragments/11786-group5-batch15-locale.yml b/changelogs/fragments/11786-group5-batch15-locale.yml new file mode 100644 index 0000000000..f4a4e61846 --- /dev/null +++ b/changelogs/fragments/11786-group5-batch15-locale.yml @@ -0,0 +1,10 @@ +bugfixes: + - keyring_info - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing + (https://github.com/ansible-collections/community.general/issues/11737, + https://github.com/ansible-collections/community.general/pull/11786). + - onepassword_info - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing + (https://github.com/ansible-collections/community.general/issues/11737, + https://github.com/ansible-collections/community.general/pull/11786). + - riak - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing + (https://github.com/ansible-collections/community.general/issues/11737, + https://github.com/ansible-collections/community.general/pull/11786). diff --git a/plugins/modules/keyring_info.py b/plugins/modules/keyring_info.py index e9328476e6..e935db8777 100644 --- a/plugins/modules/keyring_info.py +++ b/plugins/modules/keyring_info.py @@ -106,6 +106,7 @@ def run_module(): ) module = AnsibleModule(argument_spec=module_args, supports_check_mode=True) + module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"} if not HAS_KEYRING: module.fail_json(msg=missing_required_lib("keyring"), exception=KEYRING_IMP_ERR) diff --git a/plugins/modules/onepassword_info.py b/plugins/modules/onepassword_info.py index 9a86b7a775..72c16c53c7 100644 --- a/plugins/modules/onepassword_info.py +++ b/plugins/modules/onepassword_info.py @@ -380,6 +380,7 @@ def main(): ), supports_check_mode=True, ) + module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"} results = {"onepassword": OnePasswordInfo().run()} diff --git a/plugins/modules/riak.py b/plugins/modules/riak.py index 529202a2c0..3e1d6c3144 100644 --- a/plugins/modules/riak.py +++ b/plugins/modules/riak.py @@ -106,6 +106,7 @@ def main(): validate_certs=dict(default=True, type="bool"), ) ) + module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"} command = module.params.get("command") http_conn = module.params.get("http_conn")