mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01: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:
parent
e02e9d17d2
commit
492d5e3d05
3 changed files with 7 additions and 2 deletions
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:
|
except AnsibleAction as e:
|
||||||
result.update(e.result)
|
result.update(e.result)
|
||||||
finally:
|
finally:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue