Skip to content

Commit

Permalink
adds standardized list API for scripts and reports #13037
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Aug 4, 2023
1 parent 6776232 commit 98006a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/extras/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def list(self, request):

serializer = serializers.ScriptSerializer(script_list, many=True, context={'request': request})

return Response({'count': len(serializer.data), 'results': serializer.data})
return Response({'count': len(script_list), 'results': serializer.data})

def retrieve(self, request, pk):
module, script = self._get_script(pk)
Expand Down

0 comments on commit 98006a0

Please sign in to comment.