diff options
author | toshihisa <i.toshihisa@gmail.com> | 2016-03-16 00:55:50 +0900 |
---|---|---|
committer | toshihisa <i.toshihisa@gmail.com> | 2016-03-16 00:55:50 +0900 |
commit | 530643a21608a00031a79374d8827051a0993081 (patch) | |
tree | 6e60012dc922f18454023121e79a7584f4b3876f | |
parent | a8841e6834231ed63f8df4bab9d5996d9a78f0bf (diff) | |
download | ansible-modules-core-530643a21608a00031a79374d8827051a0993081.tar.gz |
One more bug yum non English locales
https://github.com/ansible/ansible-modules-core/commit/d7fac82f97c153af08dbea2b2ae9718b19abeb8a
-rw-r--r-- | packaging/os/yum.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/os/yum.py b/packaging/os/yum.py index c841d4a0..b25cc783 100644 --- a/packaging/os/yum.py +++ b/packaging/os/yum.py @@ -657,7 +657,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: |