From b18f1932ee16798a499812b1a9044e56b27896fc Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Tue, 29 Oct 2024 11:16:06 -0700 Subject: [PATCH] 17885 fix script running by providing script name to job --- netbox/extras/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/extras/views.py b/netbox/extras/views.py index 3218422605c..0d98b132467 100644 --- a/netbox/extras/views.py +++ b/netbox/extras/views.py @@ -1180,7 +1180,8 @@ def post(self, request, **kwargs): data=form.cleaned_data, request=copy_safe_request(request), job_timeout=script.python_class.job_timeout, - commit=form.cleaned_data.pop('_commit') + commit=form.cleaned_data.pop('_commit'), + name=script.name ) return redirect('extras:script_result', job_pk=job.pk)