[PR #17343] [MERGED] Fixes #17323: Associate job with script object when executed using runscript command #15071

Closed
opened 2025-12-30 00:19:47 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17343
Author: @jeremystretch
Created: 9/3/2024
Status: Merged
Merged: 9/3/2024
Merged by: @jeremystretch

Base: developHead: 17323-runscript-jobs


📝 Commits (1)

  • 94e7722 Fixes #17323: Associate job with script object when executed using runscript command

📊 Changes

1 file changed (+7 additions, -8 deletions)

View changed files

📝 netbox/extras/management/commands/runscript.py (+7 -8)

📄 Description

Fixes: #17323

  • Ensure the Job is associated with the Script object rather than the ScriptModule
  • Pass the script instance to _run_script() as an argument

🔄 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/17343 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 9/3/2024 **Status:** ✅ Merged **Merged:** 9/3/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `17323-runscript-jobs` --- ### 📝 Commits (1) - [`94e7722`](https://github.com/netbox-community/netbox/commit/94e77222a1d59e945a183cb083d3f6fd6b933810) Fixes #17323: Associate job with script object when executed using runscript command ### 📊 Changes **1 file changed** (+7 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/management/commands/runscript.py` (+7 -8) </details> ### 📄 Description ### Fixes: #17323 - Ensure the Job is associated with the Script object rather than the ScriptModule - Pass the script instance to `_run_script()` as an argument --- <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-30 00:19:47 +01:00
adam closed this issue 2025-12-30 00:19:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15071