mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Add an indicator to the job template launch GET endpoint to denote when
a survey is enabled
This commit is contained in:
parent
c35f892e9e
commit
ab70539aba
@ -1349,6 +1349,7 @@ class JobTemplateLaunch(GenericAPIView):
|
|||||||
data['passwords_needed_to_start'] = obj.passwords_needed_to_start
|
data['passwords_needed_to_start'] = obj.passwords_needed_to_start
|
||||||
data['ask_variables_on_launch'] = obj.ask_variables_on_launch
|
data['ask_variables_on_launch'] = obj.ask_variables_on_launch
|
||||||
data['variables_needed_to_start'] = obj.variables_needed_to_start
|
data['variables_needed_to_start'] = obj.variables_needed_to_start
|
||||||
|
data['survey_enabled'] = obj.survey_enabled
|
||||||
return Response(data)
|
return Response(data)
|
||||||
|
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user