issue #109: do exactly what Ansible does

Could it be that some empty dict magically gets populated from somewhere
invisible?
wip-fakessh-exit-status
David Wilson 7 years ago
parent 23d104f73b
commit b527628b17

@ -259,9 +259,12 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase):
helpers.run_module() or helpers.run_module_async() in the target helpers.run_module() or helpers.run_module_async() in the target
context. context.
""" """
module_name = module_name or self._task.action if task_vars is None:
module_args = module_args or self._task.args task_vars = {}
task_vars = task_vars or {} if module_name is None:
module_name = self._task.action
if module_args is None:
module_args = self._task.args
self._update_module_args(module_name, module_args, task_vars) self._update_module_args(module_name, module_args, task_vars)
if wrap_async: if wrap_async:

Loading…
Cancel
Save