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

@@ -79,7 +79,6 @@ subca:
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.community.general.plugins.module_utils.ipa import IPAClient, ipa_argument_spec
from ansible.module_utils.common.text.converters import to_native
from ansible_collections.community.general.plugins.module_utils.version import LooseVersion
@@ -215,7 +214,7 @@ def main():
changed, record = ensure(module, client)
module.exit_json(changed=changed, record=record)
except Exception as exc:
module.fail_json(msg=to_native(exc))
module.fail_json(msg=f"{exc}")
if __name__ == "__main__":