1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

[PR #11104/4171b8a9 backport][stable-12] replace batch of redundant to_native()/to_text() occurrences (#11138)

replace batch of redundant to_native()/to_text() occurrences (#11104)

* replace batch of redundant to_native()/to_text() occurrences

* add changelog frag

(cherry picked from commit 4171b8a9ab)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-11-12 21:58:55 +01:00 committed by GitHub
parent 50ae8fd7ae
commit 31f0087da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 9 deletions

View file

@ -841,7 +841,7 @@ class JIRA(StateModuleHelper):
msg.append(to_native(error[key]))
if msg:
self.module.fail_json(msg=", ".join(msg))
self.module.fail_json(msg=to_native(error))
self.module.fail_json(msg=f"{error}")
# Fallback print body, if it can't be decoded
self.module.fail_json(msg=to_native(info["body"]))