mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Server Upgrade: specify order of plugins in update files
* add 'plugin' directive * specify plugins order in update files * remove 'run plugins' options * use ldapupdater API instance in plugins * add update files representing former PreUpdate and PostUpdate order of plugins https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
committed by
Petr Vobornik
parent
cc19b5a76a
commit
f24f614396
@@ -1371,7 +1371,7 @@ class Method(Attribute, Command):
|
||||
|
||||
|
||||
@register.base()
|
||||
class Updater(Method):
|
||||
class Updater(Plugin):
|
||||
"""
|
||||
An LDAP update with an associated object (always update).
|
||||
|
||||
@@ -1397,8 +1397,8 @@ class Updater(Method):
|
||||
>>> api.Updater.my_update # doctest:+ELLIPSIS
|
||||
ipalib.frontend.my_update()
|
||||
"""
|
||||
def __init__(self):
|
||||
super(Updater, self).__init__()
|
||||
def execute(self, **options):
|
||||
raise NotImplementedError('%s.execute()' % self.name)
|
||||
|
||||
def __call__(self, **options):
|
||||
self.debug(
|
||||
|
||||
Reference in New Issue
Block a user