|
|
@ -29,6 +29,7 @@
|
|
|
|
import ansible.plugins.action
|
|
|
|
import ansible.plugins.action
|
|
|
|
import mitogen.core
|
|
|
|
import mitogen.core
|
|
|
|
import ansible_mitogen.helpers
|
|
|
|
import ansible_mitogen.helpers
|
|
|
|
|
|
|
|
from mitogen.utils import cast
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ActionModule(ansible.plugins.action.ActionBase):
|
|
|
|
class ActionModule(ansible.plugins.action.ActionBase):
|
|
|
@ -37,7 +38,7 @@ class ActionModule(ansible.plugins.action.ActionBase):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
result = self._connection.call(
|
|
|
|
result = self._connection.call(
|
|
|
|
ansible_mitogen.helpers.get_async_result,
|
|
|
|
ansible_mitogen.helpers.get_async_result,
|
|
|
|
job_id,
|
|
|
|
cast(job_id),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
except mitogen.core.CallError, e:
|
|
|
|
except mitogen.core.CallError, e:
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|