From a4427d55c304274afc54d69d9fa39b97c14b4a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Sun, 7 Aug 2016 21:44:07 +0200 Subject: [PATCH] apk: fix LANG != C while parsing stdout (#2689) --- lib/ansible/modules/extras/packaging/os/apk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/packaging/os/apk.py b/lib/ansible/modules/extras/packaging/os/apk.py index 120fc981382..c867d1160d1 100644 --- a/lib/ansible/modules/extras/packaging/os/apk.py +++ b/lib/ansible/modules/extras/packaging/os/apk.py @@ -212,6 +212,9 @@ def main(): supports_check_mode = True ) + # Set LANG env since we parse stdout + module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C') + global APK_PATH APK_PATH = module.get_bin_path('apk', required=True)