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:
Anton Hvornum 2022-05-01 17:06:23 +02:00 committed by GitHub
parent 7fc65fad0c
commit c40d27b074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()