diff --git a/library/async_status b/library/async_status index ef5dbe06e0d..d24d6f33833 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