Plugin validation fails for required version, settings #4349

Closed
opened 2025-12-29 18:35:05 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 11, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.10

Steps to Reproduce

  1. Create and enable a plugin with at least one item defined in required_settings.
  2. Don't define that setting for the plugin in configuration.py.
  3. Run NetBox

Expected Behavior

NetBox should raise an ImproperlyConfigured exception complaining about the missing setting.

Observed Behavior

No exception is raised. This is due a a somewhat strange bug where referencing settings within PluginConfig.validate() suppresses the exception.

Originally created by @jeremystretch on GitHub (Dec 11, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.9.10 ### Steps to Reproduce 1. Create and enable a plugin with at least one item defined in `required_settings`. 2. Don't define that setting for the plugin in `configuration.py`. 3. Run NetBox ### Expected Behavior NetBox should raise an ImproperlyConfigured exception complaining about the missing setting. ### Observed Behavior No exception is raised. This is due a a somewhat strange bug where referencing `settings` within `PluginConfig.validate()` suppresses the exception.
adam added the type: bugstatus: accepted labels 2025-12-29 18:35:05 +01:00
adam closed this issue 2025-12-29 18:35:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4349