Fixed a plugin issue where there are no plugins found.
This commit is contained in:
parent
3006e5b4c3
commit
7b1bb4af97
|
|
@ -16,7 +16,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()['archinstall.plugin']:
|
||||
for plugin_definition in metadata.entry_points().get('archinstall.plugin', []):
|
||||
plugin_entrypoint = plugin_definition.load()
|
||||
try:
|
||||
plugins[plugin_definition.name] = plugin_entrypoint()
|
||||
|
|
|
|||
Loading…
Reference in New Issue