mirror of
https://github.com/ansible/awx.git
synced 2026-04-16 23:40:17 -02:30
Replace the old unit tests with new functional tests
This commit is contained in:
@@ -1738,6 +1738,12 @@ class HostInsights(GenericAPIView):
|
||||
data = self._get_insights(platform_id, session, headers)
|
||||
return Response(data, status=status.HTTP_200_OK)
|
||||
|
||||
def handle_exception(self, exc):
|
||||
# Continue supporting the slightly different way we have handled error responses on this view.
|
||||
response = super().handle_exception(exc)
|
||||
response.data['error'] = response.data.pop('detail')
|
||||
return response
|
||||
|
||||
|
||||
class GroupList(ListCreateAPIView):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user