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

[FIX] templates Python 3 compat #92

Merged
merged 1 commit into from
Aug 2, 2018
Merged

[FIX] templates Python 3 compat #92

merged 1 commit into from
Aug 2, 2018

Conversation

ncharlot
Copy link
Contributor

@ncharlot ncharlot commented Aug 1, 2018

Fixing iteritems() removal in Python 3 replacing by items() and list Jinja filter.

See more:
https://docs.ansible.com/ansible/2.6/user_guide/playbooks_python_version.html#pb-py-compat-dict-views

@sebalix
Copy link
Collaborator

sebalix commented Aug 1, 2018

Hi, thank you for the fix, I made a similar fix in one of my branch (sebalix@4e0a0c4) but never go further (not really tested), and I didn't know about the list filter.

I write also another commit to test the role with Python3 on Travis (sebalix@31852e7#diff-88c9aa1286c0f528a281086f64cc5d32), I don't remember if it's working well, but we are stuck with Python 2 internally due to others roles not compatible Python 3...

Waiting for Travis before merging this.

@sebalix sebalix merged commit a043401 into OCA:master Aug 2, 2018
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