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

Py3 error, modify pass failed with """'str' does not support the buffer interface""" #28183

Closed
c0psrul3 opened this issue Aug 14, 2017 · 3 comments · Fixed by #28276
Closed
Labels
affects_2.4 This issue/PR affects Ansible v2.4 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@c0psrul3
Copy link
Contributor

open(self.SHADOWFILE, 'w+').writelines(lines)

example failed output:
"""
fatal: [calgtnt04]: FAILED! => {"changed": false, "failed": true, "msg": "failed to update users password: 'str' does not support the buffer interface"}
"""

This host is SunOS 10u11
working on testing change to open file with 'wb+'.

@ansibot
Copy link
Contributor

ansibot commented Aug 14, 2017

@c0psrul3 Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • issue type
  • ansible version
  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md

click here for bot help

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. 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. labels Aug 14, 2017
@c0psrul3
Copy link
Contributor Author

Issue type is Bug and appears to be similar to #19715
Affecting User module in Ansible v2.3.1 , v2.3.2 , devel

@abadger
Copy link
Contributor

abadger commented Aug 17, 2017

Closing this since there's a Pull Request that we can discuss on.

@abadger abadger closed this as completed Aug 17, 2017
abadger pushed a commit that referenced this issue Aug 19, 2017
* fixed #28183 - user module shadowfile update on SunOS
(cherry picked from commit b5a00d0)
abadger pushed a commit that referenced this issue Aug 19, 2017
* fixed #28183 - user module shadowfile update on SunOS
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Aug 21, 2017
prasadkatti pushed a commit to prasadkatti/ansible that referenced this issue Oct 1, 2017
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
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 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants