mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -03:30
Don't hard-fail if default isn't defined on survey
This commit is contained in:
@@ -293,7 +293,7 @@ class JobTemplate(UnifiedJobTemplate, JobOptions):
|
||||
# Overwrite with job template extra vars with survey default vars
|
||||
if self.survey_enabled and 'spec' in self.survey_spec:
|
||||
for survey_element in self.survey_spec.get("spec", []):
|
||||
if survey_element['default']:
|
||||
if 'default' in survey_element and survey_element['default']:
|
||||
extra_vars[survey_element['variable']] = survey_element['default']
|
||||
|
||||
# transform to dict
|
||||
|
||||
Reference in New Issue
Block a user