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

* WinRM/PSRP: Fix UTF-8 issue

* added changelog fragment
pull/47346/head
Dag Wieers 6 years ago committed by Jordan Borean
parent cf2af97b78
commit 1bb674034f

@ -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

@ -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

Loading…
Cancel
Save