summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hostgroup.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-08-02 18:10:01 -0400
committerRob Crittenden <rcritten@redhat.com>2010-08-06 15:34:09 -0400
commit8ad88b411921ba90bdd149eb278639e1cbbe1a1a (patch)
tree1c5c56a0f1a0a490a3499201a5427250697528b6 /ipalib/plugins/hostgroup.py
parentd0740fb08b7b9d910a38c56a812aaad2c2df7f50 (diff)
downloadfreeipa-8ad88b411921ba90bdd149eb278639e1cbbe1a1a.tar.gz
freeipa-8ad88b411921ba90bdd149eb278639e1cbbe1a1a.tar.xz
freeipa-8ad88b411921ba90bdd149eb278639e1cbbe1a1a.zip
Properly show the members when an add/remove operation fails.
The remove member function in baseldap was not returning failures at all. The add member function was only showing them in the group object. Most of the magic is handled in baseldap. Each plugin just needs to define object_name and object_name_plural. object_name must be all lower-case because fake-attributes are created so membership can be broken out per-object type. I left the plural name lower case as well. ticket 85
Diffstat (limited to 'ipalib/plugins/hostgroup.py')
-rw-r--r--ipalib/plugins/hostgroup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py
index fe5bed76..ff97a139 100644
--- a/ipalib/plugins/hostgroup.py
+++ b/ipalib/plugins/hostgroup.py
@@ -51,7 +51,7 @@ class hostgroup(LDAPObject):
"""
container_dn = api.env.container_hostgroup
object_name = 'hostgroup'
- object_name_plurals = 'hostgroups'
+ object_name_plural = 'hostgroups'
object_class = ['ipaobject', 'ipahostgroup']
default_attributes = ['cn', 'description', 'member', 'memberof']
uuid_attribute = 'ipauniqueid'