mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 03:46:25 -06:00
fix runscript command
This commit is contained in:
parent
b2d0711235
commit
ebd25d75ef
@ -111,7 +111,7 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
# Create the job
|
# Create the job
|
||||||
job = Job.objects.create(
|
job = Job.objects.create(
|
||||||
instance=module,
|
object=module,
|
||||||
name=script.name,
|
name=script.name,
|
||||||
user=User.objects.filter(is_superuser=True).order_by('pk')[0],
|
user=User.objects.filter(is_superuser=True).order_by('pk')[0],
|
||||||
job_id=uuid.uuid4()
|
job_id=uuid.uuid4()
|
||||||
|
Loading…
Reference in New Issue
Block a user