-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
HAProxy module does not work with python3 interpreter #34811
Labels
affects_2.4
This issue/PR affects Ansible v2.4
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
net_tools
Net-tools category
python3
support:community
This issue/PR relates to code supported by the Ansible community.
Projects
Comments
Files identified in the description: If these files are inaccurate, please update the |
ansibot
added
affects_2.4
This issue/PR affects Ansible v2.4
bug_report
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
net_tools
Net-tools category
python3
support:community
This issue/PR relates to code supported by the Ansible community.
labels
Jan 12, 2018
sivel
removed
the
needs_triage
Needs a first human triage before being processed.
label
Jan 15, 2018
Easier to read traceback:
|
ravibhure
added a commit
to ravibhure/ansible
that referenced
this issue
Jan 22, 2018
@newsletter2go Thanks for reporting the issue. I update the PR (#35176) @sivel looking to merge it soon. |
ravibhure
added a commit
to ravibhure/ansible
that referenced
this issue
Jan 23, 2018
abadger
pushed a commit
to abadger/ansible
that referenced
this issue
Mar 22, 2018
* Fix python3 interpreter issue (ansible#34811) * Update ansible.module_utils._text (ansible#34811) * Convert to text later to account for multibyte characters
abadger
pushed a commit
to abadger/ansible
that referenced
this issue
Mar 22, 2018
* Fix python3 interpreter issue (ansible#34811) * Update ansible.module_utils._text (ansible#34811) * Convert to text later to account for multibyte characters (cherry picked from commit 340064b)
abadger
pushed a commit
that referenced
this issue
Mar 29, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.4
This issue/PR affects Ansible v2.4
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
net_tools
Net-tools category
python3
support:community
This issue/PR relates to code supported by the Ansible community.
ISSUE TYPE
COMPONENT NAME
HAProxy module
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible OS: Ubuntu 16.04
Managed OS: Ubuntu 16.04
SUMMARY
When using python3 as ansible interpreter the haproxy fails while setting the backend to a specific state.
STEPS TO REPRODUCE
It works when no specific ansible interpreter is set, which means that python 2.7 is used. When setting
in the host vars or group vars before, you get the error shown below. The issue seems to be here https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/net_tools/haproxy.py#L254 .
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: