1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-02 00:28:52 +00:00

Use unicode instead of bytes (#46234)

The stdout and stderr values returned from self._low_level_execute() are text, not bytes. This results in an error in Python 3 since str and bytes cannot be concatenated.

Changing to unicode type allows this to work without error on Python 2 and Python 3.
This commit is contained in:
Sam Doran 2018-09-28 12:51:17 -04:00 committed by GitHub
parent 00d78d7ef3
commit 77f73f6d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- reboot - use unicode instead of bytes for stdout and stderr to match the
type returned from low_level_execute()