summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-03-28 16:27:42 +0200
committerRob Crittenden <rcritten@redhat.com>2011-03-29 13:54:32 -0400
commite7fda0652d26a3b9cb2bab5430e483452a333893 (patch)
treed680e5f45d734a0a0dab1ab8a47eeaf7579a014e /ipalib/plugins
parentb29bd47273f83edad4f7c26c7ff89cf1fac8f668 (diff)
downloadfreeipa-e7fda0652d26a3b9cb2bab5430e483452a333893.tar.gz
freeipa-e7fda0652d26a3b9cb2bab5430e483452a333893.tar.xz
freeipa-e7fda0652d26a3b9cb2bab5430e483452a333893.zip
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
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index c3bcddd23..891a73a87 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -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: