Don't pass mode from synchronize action plugin to the ansible module

Fixes https://github.com/ansible/ansible-modules-core/issues/1783
This commit is contained in:
Toshio Kuratomi 2015-07-23 00:39:15 -07:00
parent b678b9828c
commit b06353791c
2 changed files with 123 additions and 2 deletions

View file

@ -169,6 +169,11 @@ class ActionModule(ActionBase):
if use_ssh_args:
self._task.args['ssh_args'] = constants.ANSIBLE_SSH_ARGS
# Remove mode as it is handled purely in this action module
if 'mode' in self._task.args:
del self._task.args['mode']
# run the module and store the result
result = self._execute_module('synchronize', task_vars=task_vars)