[PR #12456] [MERGED] 12416 warning for missing script file #13980

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12456
Author: @arthanson
Created: 5/3/2023
Status: Merged
Merged: 5/5/2023
Merged by: @jeremystretch

Base: developHead: 12416-custom-script


📝 Commits (4)

  • 39a7472 12416 warning for missing script file
  • 2cd14b4 12416 widen exception catching for internal script error
  • 5976d84 Update netbox/extras/models/scripts.py
  • 364f20f 12416 update from review feedback

📊 Changes

3 files changed (+52 additions, -39 deletions)

View changed files

📝 netbox/extras/models/scripts.py (+9 -1)
📝 netbox/extras/views.py (+0 -1)
📝 netbox/templates/extras/script_list.html (+43 -37)

📄 Description

Fixes: #12416

Fixes the case of missing script files causing the script list view to error out. Now shows a warning message for the admin to check the file (see screenshot below). Also removed a left-over print statement in the code.

Monosnap Scripts | NetBox 2023-05-03 14-26-20


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/12456 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 5/3/2023 **Status:** ✅ Merged **Merged:** 5/5/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `12416-custom-script` --- ### 📝 Commits (4) - [`39a7472`](https://github.com/netbox-community/netbox/commit/39a74727c327f11abd275780d7b0e7505fdfc6e4) 12416 warning for missing script file - [`2cd14b4`](https://github.com/netbox-community/netbox/commit/2cd14b4dd10548f62639d104ac2a8a8a2aac42bc) 12416 widen exception catching for internal script error - [`5976d84`](https://github.com/netbox-community/netbox/commit/5976d8484e53f477df52ca52a838149fd4e408aa) Update netbox/extras/models/scripts.py - [`364f20f`](https://github.com/netbox-community/netbox/commit/364f20f620045ee58096ddc34bac764da0d3e057) 12416 update from review feedback ### 📊 Changes **3 files changed** (+52 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/models/scripts.py` (+9 -1) 📝 `netbox/extras/views.py` (+0 -1) 📝 `netbox/templates/extras/script_list.html` (+43 -37) </details> ### 📄 Description ### Fixes: #12416 Fixes the case of missing script files causing the script list view to error out. Now shows a warning message for the admin to check the file (see screenshot below). Also removed a left-over print statement in the code. ![Monosnap Scripts | NetBox 2023-05-03 14-26-20](https://user-images.githubusercontent.com/99642/236053537-0365aded-4245-4ff4-be64-90523a0dacda.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:21:52 +01:00
adam closed this issue 2025-12-29 23:21:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13980