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

@@ -107,7 +107,7 @@ import base64
import traceback
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
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
from ansible_collections.community.general.plugins.module_utils.ldap import (
LdapGeneric,
gen_specs,
@@ -145,7 +145,7 @@ def main():
try:
LdapSearch(module).main()
except Exception as exception:
module.fail_json(msg="Attribute action failed.", details=to_native(exception))
module.fail_json(msg="Attribute action failed.", details=f"{exception}")
def _normalize_string(val, convert_to_base64):