1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

use FQCN when calling a module from action plugin (#967)

* use FQCN when calling a module from action plugin

https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.10.html#action-plugins-which-execute-modules-should-use-fully-qualified-module-names

* doc: add changelog fragment (minor_changes)

* move to shippable/posix/group1 to run tests with ansible 2.9

* move back to shippable/posix/group4

to not share testbed with docker engine on rhel7, that never releases
the xtables lock and leads 'iptables_state' tests to always fail.
This commit is contained in:
quidame 2020-09-28 20:06:08 +00:00 committed by GitHub
parent 4931fb2681
commit ea1fb83b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,4 @@
---
minor_changes:
- iptables_state - use FQCN when calling a module from action plugin
(https://github.com/ansible-collections/community.general/pull/967).

View file

@ -48,7 +48,7 @@ class ActionModule(ActionBase):
# At least one iteration is required, even if timeout is 0.
for i in range(max(1, timeout)):
async_result = self._execute_module(
module_name='async_status',
module_name='ansible.builtin.async_status',
module_args=module_args,
task_vars=task_vars,
wrap_async=False)
@ -177,7 +177,7 @@ class ActionModule(ActionBase):
async_status_args['mode'] = 'cleanup'
garbage = self._execute_module(
module_name='async_status',
module_name='ansible.builtin.async_status',
module_args=async_status_args,
task_vars=task_vars,
wrap_async=False)