mirror of
https://github.com/ansible/awx.git
synced 2026-04-25 03:35:22 -02:30
Allow empty default values for numerical survey answers.
Signed-off-by: Vismay Golwala <vgolwala@redhat.com>
This commit is contained in:
@@ -2509,7 +2509,7 @@ class JobTemplateSurveySpec(GenericAPIView):
|
||||
).format(
|
||||
allowed_types=', '.join(JobTemplateSurveySpec.ALLOWED_TYPES.keys()), **context
|
||||
)))
|
||||
if 'default' in survey_item:
|
||||
if 'default' in survey_item and survey_item['default'] != '':
|
||||
if not isinstance(survey_item['default'], JobTemplateSurveySpec.ALLOWED_TYPES[qtype]):
|
||||
type_label = 'string'
|
||||
if qtype in ['integer', 'float']:
|
||||
|
||||
Reference in New Issue
Block a user