diff --git a/library/async_status b/library/async_status index ef5dbe06e0..d24d6f3383 100644 --- a/library/async_status +++ b/library/async_status @@ -89,6 +89,10 @@ def main(): if not 'started' in data: data['finished'] = 1 data['ansible_job_id'] = jid + + # Fix error: TypeError: exit_json() keywords must be strings + data = dict([(str(k), v) for k, v in data.iteritems()]) + module.exit_json(**data) # this is magic, see lib/ansible/module_common.py