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

Compare byte strings to byte strings #37606

Merged
merged 1 commit into from Mar 20, 2018

Conversation

abadger
Copy link
Contributor

@abadger abadger commented Mar 19, 2018

  • 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 #36962

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/cli/pull.py

ANSIBLE VERSION
devel 2.5 2.4

* 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
@abadger abadger added this to To Do in 2.5.x blocker list via automation Mar 19, 2018
@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. 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 19, 2018
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Mar 19, 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 20, 2018
@abadger abadger merged commit b98ad3a into ansible:devel Mar 20, 2018
@abadger abadger deleted the fix-py3-ansible-pull branch March 20, 2018 19:04
@abadger abadger removed this from To Do in 2.5.x blocker list Mar 20, 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
bug This issue/PR relates to a bug. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix string/binary encoding issue in pull.py
3 participants