[PR #11143/23e81b8d backport][stable-12] replace redundant to_native()/to_text() occurrences, batch 8 (#11164)

replace redundant to_native()/to_text() occurrences, batch 8 (#11143)

* replace redundant to_native()/to_text() occurrences, batch 8

* add changelog frag

* Update plugins/modules/jira.py



---------


(cherry picked from commit 23e81b8d30)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-11-16 07:09:40 +01:00
committed by GitHub
parent 15d4fff749
commit 8a7f360558
22 changed files with 68 additions and 58 deletions

View File

@@ -274,7 +274,7 @@ except ImportError:
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
from ansible.module_utils.urls import fetch_url
from ansible.module_utils.common.text.converters import to_bytes, to_native, to_text
from ansible.module_utils.common.text.converters import to_bytes, to_text
def split_pre_existing_dir(dirname):
@@ -601,7 +601,7 @@ class MavenDownloader:
errors="strict",
)
except UnicodeError as e:
return f"Cannot retrieve a valid {checksum_alg} checksum from {remote_url}: {to_native(e)}"
return f"Cannot retrieve a valid {checksum_alg} checksum from {remote_url}: {e}"
if not remote_checksum:
return f"Cannot find {checksum_alg} checksum from {remote_url}"
try: