From 4284d4fb4da1049c8b9f23d838f963b301aef97d Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 21 Jun 2016 12:07:21 +0200 Subject: 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 --- ipaclient/remote_plugins/schema.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipaclient/remote_plugins/schema.py') 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): -- cgit