Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iteritems not working for dict in py3 #43

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

licode
Copy link

@licode licode commented Jan 11, 2019

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
Copy link
Author

licode commented Jan 18, 2019

@jtaylor , any comment on this PR?

@jaytaylor
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants