Using Module Type profile without schema generates TypeError #11266

Closed
opened 2025-12-29 21:42:41 +01:00 by adam · 0 comments
Owner

Originally created by @brianatlarge on GitHub (Jun 6, 2025).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.2

Python Version

3.12

Steps to Reproduce

  1. Under 'Module Type Profile', create new module type.
  2. Leave Schema blank
  3. Under 'Module Types' create new module
  4. Select new module type profile that we just created
  5. Click 'Save'

Expected Behavior

If Schema is required for the functionality of module types to work, then the Schema field should be required. Otherwise it should be possible to create a module type without the module type profile needing to have a schema specified.

Observed Behavior

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'TypeError'>

argument of type 'NoneType' is not iterable

Python version: 3.12.3
NetBox version: 4.3.2
Plugins: None installed

If further assistance is required, please post to the NetBox discussion forum on GitHub.

Originally created by @brianatlarge on GitHub (Jun 6, 2025). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.2 ### Python Version 3.12 ### Steps to Reproduce 1) Under 'Module Type Profile', create new module type. 2) Leave Schema blank 3) Under 'Module Types' create new module 4) Select new module type profile that we just created 5) Click 'Save' ### Expected Behavior If Schema is required for the functionality of module types to work, then the Schema field should be required. Otherwise it should be possible to create a module type without the module type profile needing to have a schema specified. ### Observed Behavior There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'TypeError'> argument of type 'NoneType' is not iterable Python version: 3.12.3 NetBox version: 4.3.2 Plugins: None installed If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub.
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 21:42:41 +01:00
adam closed this issue 2025-12-29 21:42:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11266