mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 17:50:02 -03:30
make workflow approval creation return an HTTP 201, not 200 OK
This commit is contained in:
@@ -3043,7 +3043,7 @@ class WorkflowJobTemplateNodeCreateApproval(RetrieveAPIView):
|
|||||||
approval_template,
|
approval_template,
|
||||||
context=self.get_serializer_context()
|
context=self.get_serializer_context()
|
||||||
).data
|
).data
|
||||||
return Response(data, status=status.HTTP_201_OK)
|
return Response(data, status=status.HTTP_201_CREATED)
|
||||||
|
|
||||||
def check_permissions(self, request):
|
def check_permissions(self, request):
|
||||||
obj = self.get_object().workflow_job_template
|
obj = self.get_object().workflow_job_template
|
||||||
|
|||||||
Reference in New Issue
Block a user