mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Ensure standard locale in run_command (group4-batch1) (#11765)
* ensure standard locale in run_command (group4) Adds ``LANGUAGE=C`` and ``LC_ALL=C`` to the ``environ_update`` passed to ``run_command()`` calls in modules that parse command output, to prevent locale-dependent parsing failures on non-C-locale systems. Modules updated: dconf, pkgng, terraform. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * add changelog fragment for group4 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * add PR link to group4 changelog fragment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix changelog fragment: rename with PR prefix, fix URL order 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:
@@ -528,6 +528,8 @@ def main():
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
project_path = module.params.get("project_path")
|
||||
bin_path = module.params.get("binary_path")
|
||||
plugin_paths = module.params.get("plugin_paths")
|
||||
|
||||
Reference in New Issue
Block a user