Skip to content

Commit

Permalink
fixup! Add method to create member manage commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jan 23, 2023
1 parent 80318ad commit 7873769
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions plugins/module_utils/ansible_freeipa_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,11 +828,12 @@ def gen_add_del_lists_for_members(
if values is None
else (list(values) if is_list(values) else [values])
)

_res = gen_lists(
sum([x if is_list(x) else [x] for x in params if x], []),
sum([list(res_find.get(x) or []) for x in ldap_fields], [])
)
_res = ([], [])
if params:
_res = gen_lists(
sum([x if is_list(x) else [x] for x in params if x], []),
sum([list(res_find.get(x) or []) for x in ldap_fields], [])
)

return _res

Expand Down

0 comments on commit 7873769

Please sign in to comment.