summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoshihisa <i.toshihisa@gmail.com>2016-03-16 00:55:50 +0900
committerToshio Kuratomi <toshio@fedoraproject.org>2016-03-16 18:21:40 -0700
commit628f3fd624d318a1b16767e23a4d3ce7375089e3 (patch)
treeb50d8e01a1116c1c05ece48aa028c8ef1cc82dc1
parentfbc1dde771d3170fbbe42032edcad0f17d53dae9 (diff)
downloadansible-modules-core-628f3fd624d318a1b16767e23a4d3ce7375089e3.tar.gz
One more bug yum non English locales
https://github.com/ansible/ansible-modules-core/commit/d7fac82f97c153af08dbea2b2ae9718b19abeb8a
-rw-r--r--packaging/os/yum.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/os/yum.py b/packaging/os/yum.py
index 7fd66c9a..593d4f49 100644
--- a/packaging/os/yum.py
+++ b/packaging/os/yum.py
@@ -620,7 +620,8 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
changed = True
- rc, out, err = module.run_command(cmd)
+ lang_env = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C')
+ rc, out, err = module.run_command(cmd, environ_update=lang_env)
if (rc == 1):
for spec in items: