From e7fda0652d26a3b9cb2bab5430e483452a333893 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Mon, 28 Mar 2011 16:27:42 +0200 Subject: 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 --- ipalib/plugins/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins/user.py') diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index c3bcddd2..891a73a8 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: -- cgit