1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-17 17:31:31 +00:00
community.general/tests/unit/plugins/module_utils
Alexei Znamensky b40608a39d
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>
2026-04-13 07:50:25 +12:00
..
cloud Reformat everything. 2025-11-01 13:46:53 +01:00
hwc Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13:00
identity/keycloak Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
net_tools/pritunl Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
xenserver Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
test_cmd_runner.py test(cmd_runner_fmt): assert that unpack_* functions can handle _ArgFormat objects (#11637) 2026-03-22 15:19:09 +13:00
test_csv.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
test_database.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
test_deps.py Improve Python code: address unused variables (#11049) 2025-11-09 08:14:35 +01:00
test_known_hosts.py Ensure standard locale in run_command (group5-batch1) (#11768) 2026-04-13 07:50:25 +12:00
test_module_helper.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
test_ocapi_utils.py Reformat everything. 2025-11-01 13:46:53 +01:00
test_onepassword.py Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13:00
test_opennebula.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
test_python_runner.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
test_saslprep.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
test_utm_utils.py Reformat everything. 2025-11-01 13:46:53 +01:00
test_vardict.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00