Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
492a2bf3
Unverified
Commit
492a2bf3
authored
5 years ago
by
Rafael Guterres Jeffman
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/ipaserver/library/ipaserver_test.py
+2
-1
2 additions, 1 deletion
roles/ipaserver/library/ipaserver_test.py
with
2 additions
and
1 deletion
roles/ipaserver/library/ipaserver_test.py
+
2
−
1
View file @
492a2bf3
...
...
@@ -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
)
)
# #######################################################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment