mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Finalize plugin initialization on demand.
This patch changes the way plugins are initialized. Instead of finalizing all the plugins at once, plugins are finalized only after they are accessed (currently applies to Command, Object and Attribute subclasses, only in CLI by default). This change provides significant performance boost, as only the plugins that are actually used are finalized. ticket 1336
This commit is contained in:
committed by
Rob Crittenden
parent
bce3cd945c
commit
e7a6d10555
@@ -942,7 +942,8 @@ class test_Object(ClassChecker):
|
||||
parameters.Str('four', primary_key=True),
|
||||
)
|
||||
o = example3()
|
||||
e = raises(ValueError, o.set_api, api)
|
||||
o.set_api(api)
|
||||
e = raises(ValueError, o.finalize)
|
||||
assert str(e) == \
|
||||
'example3 (Object) has multiple primary keys: one, two, four'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user