From d802f937174fa8fe228292b06edf8d113ccfaee6 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Tue, 25 Feb 2025 12:08:46 -0500 Subject: [PATCH] Undo simplification --- netbox/netbox/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index fc7e7ee90..95fa1a0b2 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -814,8 +814,10 @@ for plugin_name in PLUGINS: ) # Validate version compatibility and user-provided configuration settings and assign defaults + if plugin_name not in PLUGINS_CONFIG: + PLUGINS_CONFIG[plugin_name] = {} try: - plugin_config.validate(PLUGINS_CONFIG.get(plugin_name, {}), RELEASE.version) + plugin_config.validate(PLUGINS_CONFIG[plugin_name], RELEASE.version) except IncompatiblePluginError as e: warnings.warn(f'Unable to load plugin {plugin_name}: {e}') continue