mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Denote whether a credential is required on the launch endpoint if it was
not provided on the job template
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user