summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_crud.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-06-22 10:16:34 +0000
committerJan Cholasta <jcholast@redhat.com>2015-07-01 13:05:30 +0000
commit2d1515323acb4125306817096bafab6623de0b47 (patch)
tree5f9c347978fe2c94eb0b0f3996ff7a79d3e848db /ipatests/test_ipalib/test_crud.py
parent481f8ddaa32795c64275438645e45d2c4bbbae26 (diff)
downloadfreeipa-2d1515323acb4125306817096bafab6623de0b47.tar.gz
freeipa-2d1515323acb4125306817096bafab6623de0b47.tar.xz
freeipa-2d1515323acb4125306817096bafab6623de0b47.zip
plugable: Load plugins only from modules imported by API
Previously all plugin modules imported from anywhere were added to the API. https://fedorahosted.org/freeipa/ticket/3090 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipatests/test_ipalib/test_crud.py')
-rw-r--r--ipatests/test_ipalib/test_crud.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_ipalib/test_crud.py b/ipatests/test_ipalib/test_crud.py
index 6d29ab97a..f17371659 100644
--- a/ipatests/test_ipalib/test_crud.py
+++ b/ipatests/test_ipalib/test_crud.py
@@ -47,8 +47,8 @@ class CrudChecker(ClassChecker):
class user_verb(self.cls):
takes_args = args
takes_options = options
- api.register(user)
- api.register(user_verb)
+ api.add_plugin(user)
+ api.add_plugin(user_verb)
api.finalize()
return api