Fix pacman stdout parsing in the Ansible module (#65238)

pacman output is localized and the Ansible module is parsing its output.
So, we need to force the locale.
Add changelog fragment

Fixes #65237
This commit is contained in:
Lénaïc Huard 2019-12-23 09:53:46 +01:00 committed by Abhijeet Kasurde
parent 3caadca3f4
commit 10b6038e21
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- pacman - Fix pacman output parsing on localized environment. (https://github.com/ansible/ansible/issues/65237)

View file

@ -433,6 +433,7 @@ def main():
)
pacman_path = module.get_bin_path('pacman', True)
module.run_command_environ_update = dict(LC_ALL='C')
p = module.params