diff options
author | Stephen Fromm <stephenf@nero.net> | 2012-11-27 00:07:13 -0800 |
---|---|---|
committer | Stephen Fromm <stephenf@nero.net> | 2012-11-27 00:16:06 -0800 |
commit | 6a68d3813f5043e55ea798591421c8efa5e5460f (patch) | |
tree | 2c61adf16cc91b8d606a0dd2ce5dfca5a2850552 /lib/ansible/constants.py | |
parent | dd5a8474f839dff3d600d0ba09351db55f8c6672 (diff) | |
download | ansible-6a68d3813f5043e55ea798591421c8efa5e5460f.tar.gz |
Set LANG in module_common.py
Add constant DEFAULT_MODULE_LANG that defaults to C. Can be set via
environment variable ANSIBLE_MODULE_LANG or configuration variable
module_lang. Updated test-module to have same behavior.
Diffstat (limited to 'lib/ansible/constants.py')
-rw-r--r-- | lib/ansible/constants.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 85e3327764..6d63b5b53a 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -77,6 +77,7 @@ DEFAULT_MODULE_NAME = get_config(p, DEFAULTS, 'module_name', None, DEFAULT_PATTERN = get_config(p, DEFAULTS, 'pattern', None, '*') DEFAULT_FORKS = get_config(p, DEFAULTS, 'forks', 'ANSIBLE_FORKS', 5) DEFAULT_MODULE_ARGS = get_config(p, DEFAULTS, 'module_args', 'ANSIBLE_MODULE_ARGS', '') +DEFAULT_MODULE_LANG = get_config(p, DEFAULTS, 'module_lang', 'ANSIBLE_MODULE_LANG', 'C') DEFAULT_TIMEOUT = get_config(p, DEFAULTS, 'timeout', 'ANSIBLE_TIMEOUT', 10) DEFAULT_POLL_INTERVAL = get_config(p, DEFAULTS, 'poll_interval', 'ANSIBLE_POLL_INTERVAL', 15) DEFAULT_REMOTE_USER = get_config(p, DEFAULTS, 'remote_user', 'ANSIBLE_REMOTE_USER', active_user) |