ansible-kafka icon indicating copy to clipboard operation
ansible-kafka copied to clipboard

iteritems not working for dict in py3

Open licode opened this issue 6 years ago • 2 comments

There is some error if I am using ansible with py3

TASK [kafka : Render and write out kafka configuration files] ***********************
task path: /Users/lili/Research/Dev/playbooks/roles/kafka/tasks/kafka-cfg.yml:38
failed: [bcart01] (item=server.properties) => {
    "changed": false,
    "item": "server.properties",
    "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"
}

This fix should work for both py2 and py3.

licode avatar Jan 11 '19 17:01 licode

@jtaylor , any comment on this PR?

licode avatar Jan 18 '19 16:01 licode

If you squash and cleanup the commits, I'll gladly merge this!

jaytaylor avatar Feb 19 '20 20:02 jaytaylor