mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-05-07 13:53:05 +00:00
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:
5
changelogs/fragments/11-action-plugins-use-fqcn.yml
Normal file
5
changelogs/fragments/11-action-plugins-use-fqcn.yml
Normal 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)
|
||||
|
||||
@@ -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:
|
||||
result.update(e.result)
|
||||
finally:
|
||||
|
||||
@@ -415,6 +415,6 @@ class ActionModule(ActionBase):
|
||||
_tmp_args['rsync_opts'].append("--rsh=buildah run --")
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user