def __init__(self): LOG.info(_LI('Loading package type plugins')) extension_manager = dispatch.EnabledExtensionManager( NAMESPACE, self._is_plugin_enabled, on_load_failure_callback=self._on_load_failure) self.formats = {} for ext in extension_manager.extensions: self._load_plugin(ext)
def __init__(self, namespace="io.murano.extensions"): LOG.info('Loading extension plugins') self.namespace = namespace extension_manager = dispatch.EnabledExtensionManager( self.namespace, PluginLoader.is_plugin_enabled, on_load_failure_callback=PluginLoader._on_load_failure) self.packages = {} name_map = {} for ext in extension_manager.extensions: self.load_extension(ext, name_map) self.cleanup_duplicates(name_map)