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

Bkprt py3 csvfile #37665

Merged
merged 2 commits into from
Mar 29, 2018
Merged

Bkprt py3 csvfile #37665

merged 2 commits into from
Mar 29, 2018

Conversation

abadger
Copy link
Contributor

@abadger abadger commented Mar 20, 2018

SUMMARY

csvfile had several bugs wrt running under Python3. Backport the changes from devel to fix those

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/plugins/lookup/csvfile.py

ANSIBLE VERSION
2.5

* Fix csvfile traceback on Python3

The csvfile lookup uses some custom iterators.  These needed to be
ported to handle the python3 iterator protocol.  In addition, the
csvfile module takes an iterator of byte strings in Python2 and an
iterator of text strings in Python3

Fixes ansible#36808

(cherry picked from commit 09325b6)
@abadger abadger added this to To Do in 2.5.x blocker list via automation Mar 20, 2018
@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Mar 20, 2018
@webknjaz webknjaz removed the needs_triage Needs a first human triage before being processed. label Mar 20, 2018
@abadger abadger added this to Backport tickets in Python 3 compatibility Mar 22, 2018
@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Mar 28, 2018
@nitzmahone nitzmahone merged commit 97a0516 into ansible:stable-2.5 Mar 29, 2018
@nitzmahone nitzmahone moved this from To Do to Done in 2.5.x blocker list Mar 29, 2018
@ansible ansible locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants