Skip to content

Commit

Permalink
Fixes #16123: Fix custom script execution via REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed May 14, 2024
1 parent c95dd0b commit 6422340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/extras/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ def post(self, request, pk):
raise RQWorkerNotRunningException()

if input_serializer.is_valid():
script.result = Job.enqueue(
Job.enqueue(
run_script,
instance=script.module,
instance=script,
name=script.python_class.class_name,
user=request.user,
data=input_serializer.data['data'],
Expand Down

0 comments on commit 6422340

Please sign in to comment.