mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Inconsistent error message for duplicate user
When duplicate user is added an inconsistent error message to the rest of the framework is printed. This patch changes this to standard duplicate error message. https://fedorahosted.org/freeipa/ticket/1116
This commit is contained in:
committed by
Rob Crittenden
parent
b29bd47273
commit
e7fda0652d
@@ -261,7 +261,7 @@ class user_add(LDAPCreate):
|
||||
self.api.Command['group_show'](keys[-1])
|
||||
try:
|
||||
self.api.Command['user_show'](keys[-1])
|
||||
raise errors.DuplicateEntry()
|
||||
self.obj.handle_duplicate_entry(*keys)
|
||||
except errors.NotFound:
|
||||
raise errors.ManagedGroupExistsError(group=keys[-1])
|
||||
except errors.NotFound:
|
||||
|
||||
Reference in New Issue
Block a user