From eca7805cba032f7377f2579ae4a00de86bb26116 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 28 Feb 2018 00:04:25 +0545 Subject: [PATCH] ansible: one more cast() call. Need a more general solution to littering the code with this crap. --- ansible_mitogen/actions/mitogen_async_status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible_mitogen/actions/mitogen_async_status.py b/ansible_mitogen/actions/mitogen_async_status.py index 03c7cad8..ad1f6384 100644 --- a/ansible_mitogen/actions/mitogen_async_status.py +++ b/ansible_mitogen/actions/mitogen_async_status.py @@ -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 {