[PR #17322] [MERGED] runscript: use the previously defined "user" #15062

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

📋 Pull Request Information

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

Base: developHead: patch-1


📝 Commits (1)

  • 4ba3584 runscript: use the previously defined "user"

📊 Changes

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

View changed files

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

📄 Description

Oops, only seeing now that this might be closed automatically as the linked ticket is not triaged yet.

Fixes: #17321

There is already a logic set earlier in the code to define "user" if --user is passed as parameter, and default to the user with the lowest ID no none is provided.
This patch uses this "user" to run the job instead of always applying the default.


🔄 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/17322 **Author:** [@XioNoX](https://github.com/XioNoX) **Created:** 8/30/2024 **Status:** ✅ Merged **Merged:** 9/3/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`4ba3584`](https://github.com/netbox-community/netbox/commit/4ba3584ba34310d4b40acef52ee36845b7a0cad1) runscript: use the previously defined "user" ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/management/commands/runscript.py` (+1 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> Oops, only seeing now that this might be closed automatically as the linked ticket is not triaged yet. ### Fixes: #17321 <!-- Please include a summary of the proposed changes below. --> There is already a logic set earlier in the code to define "user" if --user is passed as parameter, and default to the user with the lowest ID no none is provided. This patch uses this "user" to run the job instead of always applying the default. --- <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:44 +01:00
adam closed this issue 2025-12-30 00:19:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15062