diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-04-04 16:05:58 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-04-04 16:06:10 +0200 |
commit | 8d6dd2e082547d6f814a904181700d7fb54d7127 (patch) | |
tree | c41599c7fd3db7441be21acdb5873cbf82aed8bf /lib/action_plugins | |
parent | e1fc6a114e23eafc709163d8e6e625c0db211fe5 (diff) |
Upgrade syntax to Ansible 2.5.
Diffstat (limited to 'lib/action_plugins')
-rw-r--r-- | lib/action_plugins/openldap.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/action_plugins/openldap.py b/lib/action_plugins/openldap.py index 86ca41f..ae4992a 100644 --- a/lib/action_plugins/openldap.py +++ b/lib/action_plugins/openldap.py @@ -1,38 +1,37 @@ # Manage OpenLDAP databases # Copyright (c) 2014 Guilhem Moulin <guilhem@fripost.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from ansible.plugins.action import ActionBase -from ansible.utils.unicode import to_bytes from ansible.module_utils._text import to_text class ActionModule(ActionBase): TRANSFERS_FILES = True def run(self, tmp=None, task_vars=None): if task_vars is None: task_vars = dict() if self._play_context.check_mode: return dict(skipped=True, msg='check mode not supported for this module') result = super(ActionModule, self).run(tmp, task_vars) target = self._task.args.get('target', None) local = self._task.args.get('local', 'no') if local not in [ 'no', 'file', 'template' ]: return dict(failed=True, msg="local must be in ['no','file','template']") |