mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-15 21:31:02 +00:00
[PR #11783/9cadc947 backport][stable-12] Ensure standard locale in run_command (group5-batch12) (#11800)
Ensure standard locale in run_command (group5-batch12) (#11783)
* Fix locale env vars in run_command() calls for group5 batch12 modules
Set LANGUAGE=C and LC_ALL=C via run_command_environ_update to ensure
locale-independent output parsing in bower, bundler, homebrew_tap,
and kibana_plugin.
* Add changelog fragment for PR #11783
---------
(cherry picked from commit 9cadc94793)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -202,6 +202,7 @@ def main():
|
||||
version=dict(),
|
||||
)
|
||||
module = AnsibleModule(argument_spec=arg_spec)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
name = module.params["name"]
|
||||
offline = module.params["offline"]
|
||||
|
||||
Reference in New Issue
Block a user