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
8a936270
Commit
8a936270
authored
3 years ago
by
Rafael Guterres Jeffman
Browse files
Options
Downloads
Patches
Plain Diff
iparole: Removed unused code.
There was some unused code that was removed.
parent
c24ff079
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
plugins/modules/iparole.py
+0
-28
0 additions, 28 deletions
plugins/modules/iparole.py
with
0 additions
and
28 deletions
plugins/modules/iparole.py
+
0
−
28
View file @
8a936270
...
@@ -298,34 +298,6 @@ def ensure_role_with_members_is_present(module, name, res_find, action):
...
@@ -298,34 +298,6 @@ def ensure_role_with_members_is_present(module, name, res_find, action):
return
commands
return
commands
def
ensure_members_are_present
(
module
,
name
,
res_find
):
"""
Define commands to ensure members are present for action `member`.
"""
commands
=
[]
members
=
member_difference
(
module
,
'
privilege
'
,
'
memberof_privilege
'
,
res_find
)
if
members
:
commands
.
append
([
name
,
"
role_add_privilege
"
,
{
"
privilege
"
:
members
}])
member_args
=
{}
for
key
in
[
'
user
'
,
'
group
'
,
'
host
'
,
'
hostgroup
'
]:
items
=
member_difference
(
module
,
key
,
'
member_%s
'
%
key
,
res_find
)
if
items
:
member_args
[
key
]
=
items
_services
=
filter_service
(
module
,
res_find
,
lambda
res
,
svc
:
not
res
.
startswith
(
svc
))
if
_services
:
member_args
[
'
service
'
]
=
_services
if
member_args
:
commands
.
append
([
name
,
"
role_add_member
"
,
member_args
])
return
commands
# pylint: disable=unused-argument
# pylint: disable=unused-argument
def
result_handler
(
module
,
result
,
command
,
name
,
args
,
errors
):
def
result_handler
(
module
,
result
,
command
,
name
,
args
,
errors
):
"""
Process the result of a command, looking for errors.
"""
"""
Process the result of a command, looking for errors.
"""
...
...
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