-
Notifications
You must be signed in to change notification settings - Fork 3k
Allow subclasses of dict for API_TOKEN_PEPPERS value #21875
Copy link
Copy link
Open
Labels
complexity: lowRequires minimal effort to implementRequires minimal effort to implementnetboxstatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationThis issue is tentatively accepted pending a volunteer committed to its implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Metadata
Metadata
Assignees
Labels
complexity: lowRequires minimal effort to implementRequires minimal effort to implementnetboxstatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationThis issue is tentatively accepted pending a volunteer committed to its implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
NetBox version
v4.5.7
Feature type
Change to existing functionality
Proposed functionality
Currently, the value of the
API_TOKEN_PEPPERSsettings is required have a type ofdictand nothing else. I've been using a simple patch to allow any value that passesisinstance(..., dict)to pass the type validation step.Use case
It seems easier to pass an
OrderedDictwhen deploying a templated settings file using Salt configuration management.Database changes
None
External dependencies
None