Skip to content

Commit

Permalink
17885 fix script running by providing script name to job
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson committed Oct 29, 2024
1 parent 5764989 commit b18f193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netbox/extras/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b18f193

Please sign in to comment.