mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix error message for nonexistent members and add tests.
https://fedorahosted.org/freeipa/ticket/4643 Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
@@ -735,7 +735,10 @@ class automember_rebuild(Command):
|
||||
names = options.get(opt_name)
|
||||
if names:
|
||||
for name in names:
|
||||
obj.get_dn_if_exists(name)
|
||||
try:
|
||||
obj.get_dn_if_exists(name)
|
||||
except errors.NotFound:
|
||||
obj.handle_not_found(name)
|
||||
search_filter = ldap.make_filter_from_attr(
|
||||
obj.primary_key.name,
|
||||
names,
|
||||
|
||||
Reference in New Issue
Block a user