mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Wrap the fh.write(str) in b() to ensure the string is of the proper type in py2/py3. Otherwise, the following error occurs when using its ssh_wrapper: An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/tmp/ansible_8r299r6t/ansible_module_git.py", line 1049, in <module> main() File "/tmp/ansible_8r299r6t/ansible_module_git.py", line 928, in main ssh_wrapper = write_ssh_wrapper() File "/tmp/ansible_8r299r6t/ansible_module_git.py", line 330, in write_ssh_wrapper fh.write(template) TypeError: 'str' does not support the buffer interface |
||
---|---|---|
.. | ||
__init__.py | ||
bzr.py | ||
git.py | ||
git_config.py | ||
github_hooks.py | ||
github_key.py | ||
github_release.py | ||
gitlab_group.py | ||
gitlab_project.py | ||
gitlab_user.py | ||
hg.py | ||
subversion.py |