use FQCN for module call in action plugins

Fixes https://github.com/ansible-collections/ansible.posix/issues/11

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2020-06-19 15:22:16 -05:00
parent e02e9d17d2
commit 492d5e3d05
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
bugfixes:
- patch - fix FQCN usage for action plugin (https://github.com/ansible-collections/ansible.posix/issues/11)
- synchronize - fix FQCN usage for action plugin (https://github.com/ansible-collections/ansible.posix/issues/11)

View file

@ -64,7 +64,7 @@ class ActionModule(ActionBase):
) )
) )
result.update(self._execute_module('patch', module_args=new_module_args, task_vars=task_vars)) result.update(self._execute_module('ansible.posix.patch', module_args=new_module_args, task_vars=task_vars))
except AnsibleAction as e: except AnsibleAction as e:
result.update(e.result) result.update(e.result)
finally: finally:

View file

@ -415,6 +415,6 @@ class ActionModule(ActionBase):
_tmp_args['rsync_opts'].append("--rsh=buildah run --") _tmp_args['rsync_opts'].append("--rsh=buildah run --")
# run the module and store the result # run the module and store the result
result.update(self._execute_module('synchronize', module_args=_tmp_args, task_vars=task_vars)) result.update(self._execute_module('ansible.posix.synchronize', module_args=_tmp_args, task_vars=task_vars))
return result return result