WinRM/PSRP: Fix UTF-8 issue (#46998)
* WinRM/PSRP: Fix UTF-8 issue * added changelog fragment
This commit is contained in:
parent
cf2af97b78
commit
1bb674034f
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/psrp-utf8.yaml
Normal file
2
changelogs/fragments/psrp-utf8.yaml
Normal 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
|
|
@ -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…
Reference in a new issue