Skip to content
Snippets Groups Projects
Unverified Commit 492a2bf3 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman Committed by GitHub
Browse files

Merge pull request #231 from Akasurde/i115

Handle RuntimeError in fail_json
parents 4ab38e8b cfdf2896
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,7 @@ import inspect
import random
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_native
from ansible.module_utils.ansible_ipa_server import (
AnsibleModuleLog, setup_logging, options, adtrust_imported, kra_imported,
PKIIniLoader, MIN_DOMAIN_LEVEL, MAX_DOMAIN_LEVEL, check_zone_overlap,
......@@ -584,7 +585,7 @@ def main():
"--auto-forwarders, or --no-forwarders options")
except RuntimeError as e:
ansible_module.fail_json(msg=e)
ansible_module.fail_json(msg=to_native(e))
# #######################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment