summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hbacsvc.py
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-05 09:34:21 -0500
committerAdam Young <ayoung@redhat.com>2011-07-05 16:19:10 -0400
commit6083df1b02f545b92e8d8fd8c767f7bbd0ca4b10 (patch)
treea8773cda52d0b86e07ed7afec50780fb638953ef /ipalib/plugins/hbacsvc.py
parentcd237e5f54d5ceb75097f42c6968933ac28cdc8e (diff)
downloadfreeipa-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/hbacsvc.py')
-rw-r--r--ipalib/plugins/hbacsvc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/hbacsvc.py b/ipalib/plugins/hbacsvc.py
index df877a605..c2f2532e7 100644
--- a/ipalib/plugins/hbacsvc.py
+++ b/ipalib/plugins/hbacsvc.py
@@ -52,8 +52,8 @@ class hbacsvc(LDAPObject):
HBAC Service object.
"""
container_dn = api.env.container_hbacservice
- object_name = 'hbacsvc'
- object_name_plural = 'hbacsvcs'
+ object_name = 'HBAC service'
+ object_name_plural = 'HBAC services'
object_class = [ 'ipaobject', 'ipahbacservice' ]
default_attributes = ['cn', 'description', 'memberindirect',]
uuid_attribute = 'ipauniqueid'