[PR #9187/f828bdee backport][stable-10] flatpak: force locale language to be C (#9207)
flatpak: force locale language to be C (#9187)
* flatpak: force locale langauge to be C
* add changelog frag
(cherry picked from commit f828bdee22
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
pull/9210/head
parent
163f3ee305
commit
5491ff7c6a
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- flatpak - force the locale language to ``C`` when running the flatpak command (https://github.com/ansible-collections/community.general/pull/9187, https://github.com/ansible-collections/community.general/issues/8883).
|
|
@ -419,6 +419,8 @@ def main():
|
||||||
if not binary:
|
if not binary:
|
||||||
module.fail_json(msg="Executable '%s' was not found on the system." % executable, **result)
|
module.fail_json(msg="Executable '%s' was not found on the system." % executable, **result)
|
||||||
|
|
||||||
|
module.run_command_environ_update = dict(LANGUAGE='C', LC_ALL='C')
|
||||||
|
|
||||||
installed, not_installed = flatpak_exists(module, binary, name, method)
|
installed, not_installed = flatpak_exists(module, binary, name, method)
|
||||||
if state == 'absent' and installed:
|
if state == 'absent' and installed:
|
||||||
uninstall_flat(module, binary, installed, method)
|
uninstall_flat(module, binary, installed, method)
|
||||||
|
|
Loading…
Reference in New Issue