From 8a2ea9a7e0930c0f50c30d9351319e74fe40a327 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Wed, 6 Oct 2010 13:45:20 -0400 Subject: Fix inconsistent error message when deleting groups that don't exist. Ticket #292 --- ipalib/plugins/group.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipalib/plugins/group.py') diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index fae6a280..9beef003 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -165,7 +165,9 @@ class group_del(LDAPDelete): def_primary_group_dn = group_dn = self.obj.get_dn(def_primary_group) if dn == def_primary_group_dn: raise errors.DefaultGroup() - (group_dn, group_attrs) = ldap.get_entry(dn) + (group_dn, group_attrs) = self.obj.methods.show( + self.obj.get_primary_key_from_dn(dn) + ) if 'mepmanagedby' in group_attrs: raise errors.ManagedGroupError() return dn -- cgit