mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 11:52:22 -06:00
19555 fix script API validation for scheduled_at (#19693)
* 19555 fix script API validation for scheduled_at * 19555 fix script API validation for scheduled_at
This commit is contained in:
@@ -270,6 +270,7 @@ class ScriptViewSet(ModelViewSet):
|
||||
module_name, script_name = pk.split('.', maxsplit=1)
|
||||
except ValueError:
|
||||
raise Http404
|
||||
|
||||
return get_object_or_404(self.queryset, module__file_path=f'{module_name}.py', name=script_name)
|
||||
|
||||
def retrieve(self, request, pk):
|
||||
|
||||
Reference in New Issue
Block a user