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

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

* add changelog frag
This commit is contained in:
Alexei Znamensky
2025-11-13 09:42:37 +13:00
committed by GitHub
parent e5ee3eb88b
commit 4171b8a9ab
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"]))