mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
Host Metrics update/soft delete
This commit is contained in:
committed by
John Westcott IV
parent
d80759cd7a
commit
b18ad77035
@@ -1562,6 +1562,11 @@ class HostMetricDetail(RetrieveDestroyAPIView):
|
||||
serializer_class = serializers.HostMetricSerializer
|
||||
permission_classes = (IsSystemAdminOrAuditor,)
|
||||
|
||||
def delete(self, request, *args, **kwargs):
|
||||
self.get_object().soft_delete()
|
||||
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
|
||||
class HostList(HostRelatedSearchMixin, ListCreateAPIView):
|
||||
always_allow_superuser = False
|
||||
|
||||
Reference in New Issue
Block a user