Closed
Description
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.10
Steps to Reproduce
- Add a dummy script:
from django.db.models import Count, Q
from dcim.models import Cable
from extras.scripts import Script
class Test(Script):
class Meta:
name = f'test'
description = f'test'
def test_report(self):
pass
- Execute the script
- Navigate to the script overview
Expected Behavior
Last Run and Status should be displayed corectly (job run date and status)
Observed Behavior
"Last Run" column shows "Never" and status is empty.
I believe the issue is:
The name of the script job is set to empty string here but the view template (https://github.com/netbox-community/netbox/blob/develop/netbox/templates/extras/script_list.html#L53) filters the last job on the scipt name.