1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-05 01:43:05 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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__":