mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-15 13:20:56 +00:00
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. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add changelog fragment for PR #11783 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:
@@ -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"]
|
||||
|
||||
@@ -143,6 +143,7 @@ def main():
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
state = module.params.get("state")
|
||||
chdir = module.params.get("chdir")
|
||||
|
||||
@@ -230,6 +230,7 @@ def main():
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
path = module.params["path"]
|
||||
if path:
|
||||
|
||||
@@ -232,6 +232,7 @@ def main():
|
||||
),
|
||||
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