From 2d1515323acb4125306817096bafab6623de0b47 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Mon, 22 Jun 2015 10:16:34 +0000 Subject: 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 --- ipatests/test_ipaserver/test_ldap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipatests/test_ipaserver') diff --git a/ipatests/test_ipaserver/test_ldap.py b/ipatests/test_ipaserver/test_ldap.py index 8b4e50058..2c187b0c7 100644 --- a/ipatests/test_ipaserver/test_ldap.py +++ b/ipatests/test_ipaserver/test_ldap.py @@ -110,10 +110,10 @@ class test_ldap(object): # we need for the test. myapi = create_api(mode=None) myapi.bootstrap(context='cli', in_server=True, in_tree=True) - myapi.register(ldap2) - myapi.register(host) - myapi.register(service) - myapi.register(service_show) + myapi.add_plugin(ldap2) + myapi.add_plugin(host) + myapi.add_plugin(service) + myapi.add_plugin(service_show) myapi.finalize() pwfile = api.env.dot_ipa + os.sep + ".dmpw" -- cgit