Skip to content

Commit 12beac4

Browse files
kprince28jeremystretch
authored andcommitted
fix the result of script jobs #14549
1 parent ec245b9 commit 12beac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/extras/management/commands/runscript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _run_script():
114114
# Create the job
115115
job = Job.objects.create(
116116
object=module,
117-
name=script.name,
117+
name=script.class_name,
118118
user=User.objects.filter(is_superuser=True).order_by('pk')[0],
119119
job_id=uuid.uuid4()
120120
)

0 commit comments

Comments
 (0)