ansible: one more cast() call.

Need a more general solution to littering the code with this crap.
wip-fakessh-exit-status
David Wilson 7 years ago
parent ba644e184d
commit eca7805cba

@ -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 {

Loading…
Cancel
Save