Skip to content

Plugin validation fails for required version, settings #5446

@jeremystretch

Description

@jeremystretch

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.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions