Modules without Script classes appear in scripts list #3446

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

Originally created by @jeremystretch on GitHub (Mar 7, 2020).

Environment

  • Python version: 3.6.9
  • NetBox version: 2.7.9

Steps to Reproduce

  1. Create a file named foo.py in NetBox's scripts root (e.g. netbox/scripts/)
  2. Reload the WSGI service to redetect file changes
  3. View the scripts list

Expected Behavior

Nothing should change

Observed Behavior

An empty scripts module named "Foo" now appears despite not containing any Script classes.

Originally created by @jeremystretch on GitHub (Mar 7, 2020). ### Environment * Python version: 3.6.9 * NetBox version: 2.7.9 ### Steps to Reproduce 1. Create a file named `foo.py` in NetBox's scripts root (e.g. `netbox/scripts/`) 2. Reload the WSGI service to redetect file changes 3. View the scripts list ### Expected Behavior Nothing should change ### Observed Behavior An empty scripts module named "Foo" now appears despite not containing any Script classes.
adam added the type: bugstatus: accepted labels 2025-12-29 18:29:12 +01:00
adam closed this issue 2025-12-29 18:29:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3446