mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 09:21:32 +00:00
Ensure standard locale in run_command (group5-batch13) (#11784)
* Fix locale env vars in run_command() calls for group5 batch13 modules Set LANGUAGE=C and LC_ALL=C via run_command_environ_update to ensure locale-independent output parsing in awall, openwrt_init, and pip_package_info. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add changelog fragment for PR #11784 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
95e2b7716a
commit
3f7ae1999e
4 changed files with 13 additions and 0 deletions
10
changelogs/fragments/11784-group5-batch13-locale.yml
Normal file
10
changelogs/fragments/11784-group5-batch13-locale.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
bugfixes:
|
||||
- awall - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing
|
||||
(https://github.com/ansible-collections/community.general/issues/11737,
|
||||
https://github.com/ansible-collections/community.general/pull/11784).
|
||||
- openwrt_init - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing
|
||||
(https://github.com/ansible-collections/community.general/issues/11737,
|
||||
https://github.com/ansible-collections/community.general/pull/11784).
|
||||
- pip_package_info - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing
|
||||
(https://github.com/ansible-collections/community.general/issues/11737,
|
||||
https://github.com/ansible-collections/community.general/pull/11784).
|
||||
|
|
@ -135,6 +135,7 @@ def main():
|
|||
required_one_of=[["name", "activate"]],
|
||||
supports_check_mode=True,
|
||||
)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
global AWALL_PATH
|
||||
AWALL_PATH = module.get_bin_path("awall", required=True)
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ def main():
|
|||
supports_check_mode=True,
|
||||
required_one_of=[("state", "enabled")],
|
||||
)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
|
||||
# initialize
|
||||
service = module.params["name"]
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ def main():
|
|||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
packages = {}
|
||||
results = {"packages": {}}
|
||||
clients = module.params["clients"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue