summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hbacrule.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-03-03 15:12:19 +0100
committerJan Cholasta <jcholast@redhat.com>2016-05-25 16:06:26 +0200
commitbed546ee8220992084520737320a646dc47ec1e3 (patch)
treeee04abce4857196b44c2c463b06aa10147eea135 /ipalib/plugins/hbacrule.py
parent0d62968b6f853246d38b06e8378cb9cae7f9bbb4 (diff)
downloadfreeipa-bed546ee8220992084520737320a646dc47ec1e3.tar.gz
freeipa-bed546ee8220992084520737320a646dc47ec1e3.tar.xz
freeipa-bed546ee8220992084520737320a646dc47ec1e3.zip
ipalib, ipaserver: migrate all plugins to Registry-based registration
Do not use the deprecated API.register method. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib/plugins/hbacrule.py')
-rw-r--r--ipalib/plugins/hbacrule.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/ipalib/plugins/hbacrule.py b/ipalib/plugins/hbacrule.py
index 54487eded..54c661133 100644
--- a/ipalib/plugins/hbacrule.py
+++ b/ipalib/plugins/hbacrule.py
@@ -410,7 +410,7 @@ class hbacrule_disable(LDAPQuery):
)
-
+# @register()
class hbacrule_add_accesstime(LDAPQuery):
"""
Add an access time to an HBAC rule.
@@ -449,9 +449,8 @@ class hbacrule_add_accesstime(LDAPQuery):
)
)
-#api.register(hbacrule_add_accesstime)
-
+# @register()
class hbacrule_remove_accesstime(LDAPQuery):
"""
Remove access time to HBAC rule.
@@ -489,8 +488,6 @@ class hbacrule_remove_accesstime(LDAPQuery):
)
)
-#api.register(hbacrule_remove_accesstime)
-
@register()
class hbacrule_add_user(LDAPAddMember):