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 telnet action plugin type error #43609

Merged
merged 2 commits into from
Aug 3, 2018
Merged

Conversation

Nifi
Copy link
Contributor

@Nifi Nifi commented Aug 2, 2018

SUMMARY

Fixes #36199
The telnet module gave the following error:
TypeError: a bytes-like object is required, not 'AnsibleUnicode'
This commit fixes this error by changing the types of the str type arguments to telnetlib to bytes types.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

telnet action plugin

ANSIBLE VERSION
ansible 2.7.0.dev0
  config file = None
  configured module search path = ['/home/nicolas/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible-2.7.0.dev0-py3.6.egg/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.6 (default, Jun 27 2018, 13:11:40) [GCC 8.1.1 20180531]

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. new_contributor This PR is the first contribution by a new community member. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Aug 2, 2018
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Aug 2, 2018
@bcoca bcoca merged commit d8bdf38 into ansible:devel Aug 3, 2018
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. new_contributor This PR is the first contribution by a new community member. python3 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.

Ansible Cisco IOS - Telnet
5 participants