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 pull fix #37663

Merged
merged 2 commits into from
Mar 29, 2018
Merged

Bkprt py3 pull fix #37663

merged 2 commits into from
Mar 29, 2018

Conversation

abadger
Copy link
Contributor

@abadger abadger commented Mar 20, 2018

SUMMARY

Ansible-pull --only-if-changed failed on python3 due to comparing a byte string with a text string.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/cli/pull.py

ANSIBLE VERSION
2.5

* Fix a traceback in ansible-pull on python3 comparing output from
  subprocess with a text string.
* Rename variables that hold byte strings so we are clear that those are
  not text strings.
* Use to_text() to transform variable that's being displayed as it's
  less fragile than str().

Fixes ansible#36962

(cherry picked from commit b98ad3a)
@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 4ecd16b into ansible:stable-2.5 Mar 29, 2018
@abadger abadger deleted the bkprt-py3-pull-fix branch March 29, 2018 22:16
@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