mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 17:31:31 +00:00
Ensure standard locale in run_command (group5-batch2) (#11773)
* ensure standard locale in run_command (group5-batch2) Adds ``LANGUAGE=C`` and ``LC_ALL=C`` to ``run_command()`` calls in modules that parse command output, to prevent locale-dependent parsing failures on non-C-locale systems. Modules updated: cronvar, dnf_versionlock, dpkg_divert, flatpak_remote, hg. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * add changelog fragment for group5-batch2 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
42a1998bde
commit
8fbb43e660
6 changed files with 11 additions and 0 deletions
|
|
@ -257,6 +257,7 @@ def main():
|
|||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
patterns = module.params["name"]
|
||||
raw = module.params["raw"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue