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

Bugfix: in hosts with python-2.5, hash keys needs flatten string.
pull/1785/merge
Daniel Hokka Zakrisson 12 years ago
commit ab9e9486ee

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

Loading…
Cancel
Save