瀏覽代碼

fix the result of script jobs #14549

Prince Kumar 2 年之前
父節點
當前提交
12beac4f1a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netbox/extras/management/commands/runscript.py

+ 1 - 1
netbox/extras/management/commands/runscript.py

@@ -114,7 +114,7 @@ class Command(BaseCommand):
         # Create the job
         job = Job.objects.create(
             object=module,
-            name=script.name,
+            name=script.class_name,
             user=User.objects.filter(is_superuser=True).order_by('pk')[0],
             job_id=uuid.uuid4()
         )