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-batch16) (#11787)
* Fix locale env vars in run_command() calls for group5 batch16 (btrfs module_utils) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add changelog fragment for PR #11787 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:
2
changelogs/fragments/11787-group5-batch16-locale.yml
Normal file
2
changelogs/fragments/11787-group5-batch16-locale.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- btrfs module_utils - set ``LANGUAGE`` and ``LC_ALL`` environment variables to ``C`` in all ``run_command()`` calls (https://github.com/ansible-collections/community.general/issues/11737, https://github.com/ansible-collections/community.general/pull/11787).
|
||||
@@ -35,6 +35,7 @@ class BtrfsCommands:
|
||||
|
||||
def __init__(self, module: AnsibleModule) -> None:
|
||||
self.__module = module
|
||||
self.__module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"}
|
||||
self.__btrfs: str = self.__module.get_bin_path("btrfs", required=True)
|
||||
|
||||
def filesystem_show(self) -> list[dict[str, t.Any]]:
|
||||
|
||||
Reference in New Issue
Block a user