mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Make question_description optional in the survey spec
This commit is contained in:
@@ -1464,8 +1464,6 @@ class JobTemplateSurveySpec(GenericAPIView):
|
||||
return Response(dict(error="'type' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||
if "question_name" not in survey_item:
|
||||
return Response(dict(error="'question_name' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||
if "question_description" not in survey_item:
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user