diff --git a/changelogs/fragments/psrp-utf8.yaml b/changelogs/fragments/psrp-utf8.yaml deleted file mode 100644 index cf04763a121..00000000000 --- a/changelogs/fragments/psrp-utf8.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- psrp - Fix issue when dealing with unicode values in the output for Python 2 - https://github.com/ansible/ansible/pull/46998 diff --git a/lib/ansible/plugins/connection/psrp.py b/lib/ansible/plugins/connection/psrp.py index 4a5b53e07fe..ff8c5de324b 100644 --- a/lib/ansible/plugins/connection/psrp.py +++ b/lib/ansible/plugins/connection/psrp.py @@ -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 = to_text(output) + output_msg = str(output) except TypeError: if isinstance(output, GenericComplexObject): obj_lines = output.property_sets