Denote whether a credential is required on the launch endpoint if it was

not provided on the job template
This commit is contained in:
Matthew Jones 2014-11-07 11:37:08 -05:00
parent 8fb6e50e70
commit 2258425710

View File

@ -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)