diff options
| author | René Moser <mail@renemoser.net> | 2016-12-30 09:06:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-30 09:06:49 +0100 |
| commit | f101a9bd7311999554e6a2e919c06f0a7ab3abb4 (patch) | |
| tree | 5f6740fa5e910bb58c1917a0ae4193183db125c3 | |
| parent | 5e17eb305300104616fc771e8c6572afb6f47618 (diff) | |
| download | ansible-f101a9bd7311999554e6a2e919c06f0a7ab3abb4.tar.gz | |
icinga2_feature: Set LANG since we rely on the output by using regex (#19742)
- remove common return
- add ANSIBLE_METADATA
| -rw-r--r-- | lib/ansible/modules/monitoring/icinga2_feature.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/ansible/modules/monitoring/icinga2_feature.py b/lib/ansible/modules/monitoring/icinga2_feature.py index f44f93003f..9cd1198c0f 100644 --- a/lib/ansible/modules/monitoring/icinga2_feature.py +++ b/lib/ansible/modules/monitoring/icinga2_feature.py @@ -24,6 +24,10 @@ You should have received a copy of the GNU General Public License along with Ansible. If not, see <http://www.gnu.org/licenses/>. """ +ANSIBLE_METADATA = {'status': ['preview'], + 'supported_by': 'community', + 'version': '1.0'} + DOCUMENTATION = ''' --- module: icinga2_feature @@ -54,10 +58,7 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: If module has done a change - returned: success - type: string +# ''' from ansible.module_utils.basic import AnsibleModule @@ -131,6 +132,7 @@ def main(): supports_check_mode=True ) + module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C') Icinga2FeatureHelper(module).manage() if __name__ == '__main__': |
