mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
@@ -505,9 +505,9 @@ class PluginTester(object):
|
||||
:param kw: Additional \**kw args to pass to `create_test_api`.
|
||||
"""
|
||||
(api, home) = create_test_api(**kw)
|
||||
api.register(self.plugin)
|
||||
api.add_plugin(self.plugin)
|
||||
for p in plugins:
|
||||
api.register(p)
|
||||
api.add_plugin(p)
|
||||
return (api, home)
|
||||
|
||||
def finalize(self, *plugins, **kw):
|
||||
|
Reference in New Issue
Block a user