diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-21 12:07:21 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-28 13:30:49 +0200 |
commit | 4284d4fb4da1049c8b9f23d838f963b301aef97d (patch) | |
tree | 26b1a69fc7438923fea34daf50140a1058af1fac /ipaclient/remote_plugins/schema.py | |
parent | 79d1f5833547044a7cb2700454cacb2a0976dd5f (diff) | |
download | freeipa-4284d4fb4da1049c8b9f23d838f963b301aef97d.tar.gz freeipa-4284d4fb4da1049c8b9f23d838f963b301aef97d.tar.xz freeipa-4284d4fb4da1049c8b9f23d838f963b301aef97d.zip |
plugable: support plugin versioning
Allow multiple incompatible versions of a plugin using the same name. The
current plugins are assumed to be version '1'.
The unique identifier of plugins was changed from plugin name to plugin
name and version. By default, the highest version available at build time
is used. If the plugin is an unknown remote plugin, version of '1' is used
by default.
https://fedorahosted.org/freeipa/ticket/4427
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaclient/remote_plugins/schema.py')
-rw-r--r-- | ipaclient/remote_plugins/schema.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaclient/remote_plugins/schema.py b/ipaclient/remote_plugins/schema.py index 98500384b..135c16705 100644 --- a/ipaclient/remote_plugins/schema.py +++ b/ipaclient/remote_plugins/schema.py @@ -153,6 +153,8 @@ class _SchemaPlugin(object): def __init__(self, name): self.name = name + self.version = '1' + self.full_name = '{}/{}'.format(self.name, self.version) self.__class = None def _create_default_from(self, api, name, keys): |