From ab70539aba17c642124349c006139ecc2d61f996 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 29 Sep 2014 15:31:34 -0400 Subject: [PATCH] Add an indicator to the job template launch GET endpoint to denote when a survey is enabled --- awx/api/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/api/views.py b/awx/api/views.py index f9f26e660b..c5bed9ec1d 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1349,6 +1349,7 @@ class JobTemplateLaunch(GenericAPIView): data['passwords_needed_to_start'] = obj.passwords_needed_to_start data['ask_variables_on_launch'] = obj.ask_variables_on_launch data['variables_needed_to_start'] = obj.variables_needed_to_start + data['survey_enabled'] = obj.survey_enabled return Response(data) def post(self, request, *args, **kwargs):