mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
More documentation and validation for job relaunching/template launching
This commit is contained in:
@@ -1468,6 +1468,8 @@ class JobTemplateSurveySpec(GenericAPIView):
|
||||
return Response(dict(error="'question_description' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||
if "variable" not in survey_item:
|
||||
return Response(dict(error="'variable' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||
if "required" not in survey_item:
|
||||
return Response(dict(error="'required' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||
idx += 1
|
||||
obj.save()
|
||||
return Response()
|
||||
|
||||
Reference in New Issue
Block a user