mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
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 Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
98aca27a8b
commit
23e81b8d30
22 changed files with 68 additions and 58 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue