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
1dbe19ce
Unverified
Commit
1dbe19ce
authored
1 year ago
by
Rafael Guterres Jeffman
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1156 from t-woerner/hbacsvcgroup_remove_oobsolete_result_handler
hbacsvcgroup: Remove obsolete result_handler
parents
7982fad3
3de6f914
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/modules/ipahbacsvcgroup.py
+2
-16
2 additions, 16 deletions
plugins/modules/ipahbacsvcgroup.py
with
2 additions
and
16 deletions
plugins/modules/ipahbacsvcgroup.py
+
2
−
16
View file @
1dbe19ce
...
...
@@ -146,21 +146,6 @@ def gen_member_args(hbacsvc):
return
_args
# pylint: disable=unused-argument
def
result_handler
(
module
,
result
,
command
,
name
,
args
,
errors
):
# Get all errors
# All "already a member" and "not a member" failures in the
# result are ignored. All others are reported.
if
"
failed
"
in
result
and
"
member
"
in
result
[
"
failed
"
]:
failed
=
result
[
"
failed
"
][
"
member
"
]
for
member_type
in
failed
:
for
member
,
failure
in
failed
[
member_type
]:
if
"
already a member
"
not
in
failure
\
and
"
not a member
"
not
in
failure
:
errors
.
append
(
"
%s: %s %s: %s
"
%
(
command
,
member_type
,
member
,
failure
))
def
main
():
ansible_module
=
IPAAnsibleModule
(
argument_spec
=
dict
(
...
...
@@ -303,7 +288,8 @@ def main():
}])
# Execute commands
changed
=
ansible_module
.
execute_ipa_commands
(
commands
,
result_handler
)
changed
=
ansible_module
.
execute_ipa_commands
(
commands
,
fail_on_member_errors
=
True
)
# Done
...
...
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