diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-07-05 09:34:21 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-07-05 16:19:10 -0400 |
commit | 6083df1b02f545b92e8d8fd8c767f7bbd0ca4b10 (patch) | |
tree | a8773cda52d0b86e07ed7afec50780fb638953ef /ipalib/plugins/sudocmd.py | |
parent | cd237e5f54d5ceb75097f42c6968933ac28cdc8e (diff) | |
download | freeipa-6083df1b02f545b92e8d8fd8c767f7bbd0ca4b10.tar.gz freeipa-6083df1b02f545b92e8d8fd8c767f7bbd0ca4b10.tar.xz freeipa-6083df1b02f545b92e8d8fd8c767f7bbd0ca4b10.zip |
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
Diffstat (limited to 'ipalib/plugins/sudocmd.py')
-rw-r--r-- | ipalib/plugins/sudocmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/sudocmd.py b/ipalib/plugins/sudocmd.py index a3f3beb0d..800ab2409 100644 --- a/ipalib/plugins/sudocmd.py +++ b/ipalib/plugins/sudocmd.py @@ -47,8 +47,8 @@ class sudocmd(LDAPObject): Sudo Command object. """ container_dn = api.env.container_sudocmd - object_name = 'sudocmd' - object_name_plural = 'sudocmds' + object_name = 'sudo command' + object_name_plural = 'sudo commands' object_class = ['ipaobject', 'ipasudocmd'] # object_class_config = 'ipahostobjectclasses' search_attributes = [ |