The dict object is deprectrecated, instead .select() is suggested. (#1107)
* The dict object is deprectrecated, instead .select() is suggested. * removed copy paste issue * Removed tests, they'll be added in a separate PR
This commit is contained in:
parent
7fc65fad0c
commit
c40d27b074
|
|
@ -18,7 +18,7 @@ plugins = {}
|
|||
# 1: List archinstall.plugin definitions
|
||||
# 2: Load the plugin entrypoint
|
||||
# 3: Initiate the plugin and store it as .name in plugins
|
||||
for plugin_definition in metadata.entry_points().get('archinstall.plugin', []):
|
||||
for plugin_definition in metadata.entry_points().select('archinstall.plugin'):
|
||||
plugin_entrypoint = plugin_definition.load()
|
||||
try:
|
||||
plugins[plugin_definition.name] = plugin_entrypoint()
|
||||
|
|
|
|||
Loading…
Reference in New Issue