mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Ensure standard locale in run_command (group5-batch1) (#11768)
* ensure standard locale in run_command (group5-batch1) 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: apache2_module, composer, facter_facts, known_hosts module utils, lvg_rename, macports, modprobe, monit, open_iscsi, pacman_key, rhsm_release, rpm_ostree_pkg, sysupgrade. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * add changelog fragment for group5-batch1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Remove lvg_rename from locale fix — superseded by PR #11746 PR #11746 (feat: use CmdRunner for LVM commands) takes priority and will handle lvg_rename.py via CmdRunner refactor. Removing our run_command_environ_update change to avoid conflict. 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:
@@ -322,6 +322,7 @@ def main():
|
||||
)
|
||||
|
||||
module = AnsibleModule(argument_spec=arg_spec, supports_check_mode=True)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
name = module.params["name"]
|
||||
state = module.params["state"]
|
||||
|
||||
Reference in New Issue
Block a user