Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-05-01 17:06:23 +0200
committerGitHub <noreply@github.com>2022-05-01 17:06:23 +0200
commitc40d27b0749690eddb95396a936b89238cb2fe57 (patch)
tree4e6a2038659c328ade25b628b5eb4a1b9172086f /archinstall/lib
parent7fc65fad0c7c2f6d4095d9ccf7b7463e6401fd21 (diff)
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
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/plugins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/plugins.py b/archinstall/lib/plugins.py
index 7f920317..cd7b14a4 100644
--- a/archinstall/lib/plugins.py
+++ b/archinstall/lib/plugins.py
@@ -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()