mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
Don't hard-fail if default isn't defined on survey
This commit is contained in:
parent
3315183810
commit
780b27e0ed
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user