Target branches: master, ipa-2-0 --- 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
>From 5c2613c6e171c8085eddf84a35fc6c4be2fd640b Mon Sep 17 00:00:00 2001 From: Martin Kosek <mko...@redhat.com> Date: Mon, 28 Mar 2011 16:27:42 +0200 Subject: [PATCH] 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index eaf24ce59d32833aee9482ef594ee9d61854c384..d64a9c526a3951d54b126747d2e1050480439d9a 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: -- 1.7.4
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel