WinRM/PSRP: Fix UTF-8 issue (#46998)

* WinRM/PSRP: Fix UTF-8 issue

* added changelog fragment
This commit is contained in:
Dag Wieers 2018-10-21 22:59:53 +02:00 committed by Jordan Borean
parent cf2af97b78
commit 1bb674034f
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- psrp - Fix issue when dealing with unicode values in the output for Python 2 - https://github.com/ansible/ansible/pull/46998

View file

@ -557,7 +557,7 @@ if ($bytes_read -gt 0) {
# create our own output based on the properties if that is the
# case+
try:
output_msg = str(output)
output_msg = to_text(output)
except TypeError:
if isinstance(output, GenericComplexObject):
obj_lines = output.property_sets