Commit ab9e9486 by Daniel Hokka Zakrisson

Merge pull request #1783 from gregorg/fix_bug_python_2.5_json

Bugfix: in hosts with python-2.5, hash keys needs flatten string.
parents d34e320e 29f985aa
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment