ansible: one more cast() call.

Need a more general solution to littering the code with this crap.
This commit is contained in:
David Wilson 2018-02-28 00:04:25 +05:45
parent ba644e184d
commit eca7805cba
1 changed files with 2 additions and 1 deletions

View File

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