From 6083df1b02f545b92e8d8fd8c767f7bbd0ca4b10 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 5 Jul 2011 09:34:21 -0500 Subject: Fixed object_name usage. The object_name attribute was used as both an identifier and a label which sometimes require different values (e.g. hbacrule vs. HBAC rule). The code that uses object_name as an identifier has been changed to use the 'name' attribute instead. The values of the object_name attribute have been fixed to become proper labels. Ticket #1217 --- ipalib/plugins/sudorule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/sudorule.py') diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py index a85e943f8..f595727df 100644 --- a/ipalib/plugins/sudorule.py +++ b/ipalib/plugins/sudorule.py @@ -45,8 +45,8 @@ class sudorule(LDAPObject): Sudo Rule management """ container_dn = api.env.container_sudorule - object_name = 'Sudo Rule' - object_name_plural = 'Sudo Rules' + object_name = 'sudo rule' + object_name_plural = 'sudo rules' object_class = ['ipaassociation', 'ipasudorule'] default_attributes = [ 'cn', 'ipaenabledflag', -- cgit