Handle add/remove failures a little bit better.

Still some refinements that can be done, but at least it shows the failures
now.
This commit is contained in:
Kevin McCarthy
2007-09-19 13:43:52 -07:00
parent f17071533a
commit 036cf58042
2 changed files with 31 additions and 18 deletions

View File

@@ -697,7 +697,7 @@ class IPAServer:
except ipaerror.exception_for(ipaerror.LDAP_EMPTY_MODLIST):
# User is already in the group
failed.append(user)
except ipaerror.gen_exception(ipaerror.LDAP_NOT_FOUND):
except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
# User or the group does not exist
failed.append(user)
@@ -755,7 +755,7 @@ class IPAServer:
except ipaerror.exception_for(ipaerror.LDAP_EMPTY_MODLIST):
# User is not in the group
failed.append(user)
except ipaerror.gen_exception(ipaerror.LDAP_NOT_FOUND):
except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
# User or the group does not exist
failed.append(user)