1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

fix runscript command

This commit is contained in:
Arthur
2023-05-04 11:29:25 -07:00
committed by Jeremy Stretch
parent 3eba65b5c2
commit f3826e6235

View File

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