Skip to content

Allow subclasses of dict for API_TOKEN_PEPPERS value #21875

@InvalidInterrupt

Description

@InvalidInterrupt

NetBox version

v4.5.7

Feature type

Change to existing functionality

Proposed functionality

Currently, the value of the API_TOKEN_PEPPERS settings is required have a type of dict and nothing else. I've been using a simple patch to allow any value that passes isinstance(..., dict) to pass the type validation step.

Use case

It seems easier to pass an OrderedDict when deploying a templated settings file using Salt configuration management.

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

complexity: lowRequires minimal effort to implementnetboxstatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions