[PR #9438] [MERGED] Fixes #9420: Allow script inheritance #13468

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9438
Author: @kkthxbye-code
Created: 5/28/2022
Status: Merged
Merged: 5/31/2022
Merged by: @jeremystretch

Base: developHead: fix-9420


📝 Commits (1)

  • fe899d9 Iterate base classes when searching for ScriptVariables

📊 Changes

1 file changed (+10 additions, -3 deletions)

View changed files

📝 netbox/extras/scripts.py (+10 -3)

📄 Description

Fixes: #9420

Iterates base classes when looking for ScriptVariables to allow for inheritance in scripts.

I tested as well as I could and found no regressions in current scripts.


🔄 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/9438 **Author:** [@kkthxbye-code](https://github.com/kkthxbye-code) **Created:** 5/28/2022 **Status:** ✅ Merged **Merged:** 5/31/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix-9420` --- ### 📝 Commits (1) - [`fe899d9`](https://github.com/netbox-community/netbox/commit/fe899d9d7cdb458298b92c2f46792adaf211851d) Iterate base classes when searching for ScriptVariables ### 📊 Changes **1 file changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/scripts.py` (+10 -3) </details> ### 📄 Description ### Fixes: #9420 Iterates base classes when looking for ScriptVariables to allow for inheritance in scripts. I tested as well as I could and found no regressions in current scripts. --- <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:19:02 +01:00
adam closed this issue 2025-12-29 23:19:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13468