From 22584257109b350720c1845f14c40a6ffc4899ab Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 7 Nov 2014 11:37:08 -0500 Subject: [PATCH] Denote whether a credential is required on the launch endpoint if it was not provided on the job template --- awx/api/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/api/views.py b/awx/api/views.py index 896260c75b..21a3a05251 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1465,6 +1465,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['credential_required'] = obj.credential is None data['survey_enabled'] = obj.survey_enabled return Response(data)