diff options
author | Brian Coca <bcoca@ansible.com> | 2015-06-01 09:50:12 -0400 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2015-06-01 09:50:12 -0400 |
commit | c19082bc31877a101af771abd8a041d4abedaf7f (patch) | |
tree | fb7e17cf0a6b7b65498955b279f7767346ca6747 | |
parent | 9f9b50996ede3ffdd0653e4b58df03db8b9ef2bb (diff) | |
parent | 7505065daa0a76cad46de423771e96cdc726ba4f (diff) | |
download | ansible-modules-extras-c19082bc31877a101af771abd8a041d4abedaf7f.tar.gz |
Merge pull request #529 from cthiemann/patch-1
Fix alternatives module in non-English locale
-rw-r--r-- | system/alternatives.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/alternatives.py b/system/alternatives.py index c298afc2..06d9bea2 100644 --- a/system/alternatives.py +++ b/system/alternatives.py @@ -85,7 +85,7 @@ def main(): # Run `update-alternatives --display <name>` to find existing alternatives (rc, display_output, _) = module.run_command( - [UPDATE_ALTERNATIVES, '--display', name] + ['env', 'LC_ALL=C', UPDATE_ALTERNATIVES, '--display', name] ) if rc == 0: @@ -106,7 +106,7 @@ def main(): # This is only compatible on Debian-based systems, as the other # alternatives don't have --query available rc, query_output, _ = module.run_command( - [UPDATE_ALTERNATIVES, '--query', name] + ['env', 'LC_ALL=C', UPDATE_ALTERNATIVES, '--query', name] ) if rc == 0: for line in query_output.splitlines(): |