From f788adfbca4e497d35d73fccdb2d0321b1a6a699 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 25 Apr 2014 12:57:52 -0400 Subject: [PATCH] Implement AC-1224, include the id of the new inventory or project update when launching --- awx/api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/views.py b/awx/api/views.py index add9c6352d..3deff20e6d 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -502,7 +502,7 @@ class ProjectUpdateView(GenericAPIView): return Response({}, status=status.HTTP_400_BAD_REQUEST) else: headers = {'Location': project_update.get_absolute_url()} - return Response(status=status.HTTP_202_ACCEPTED, headers=headers) + return Response(dict(project_update=project_update.id), status=status.HTTP_202_ACCEPTED, headers=headers) else: return self.http_method_not_allowed(request, *args, **kwargs) @@ -1066,7 +1066,7 @@ class InventorySourceUpdateView(GenericAPIView): return Response({}, status=status.HTTP_400_BAD_REQUEST) else: headers = {'Location': inventory_update.get_absolute_url()} - return Response(status=status.HTTP_202_ACCEPTED, headers=headers) + return Response(dict(inventory_update=inventory_update.id), status=status.HTTP_202_ACCEPTED, headers=headers) else: return self.http_method_not_allowed(request, *args, **kwargs)