mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
fix bug where empty extra vars gave relaunch 500
This commit is contained in:
@@ -983,7 +983,7 @@ class JobLaunchConfig(LaunchTimeConfig):
|
|||||||
ask_mapping = template.get_ask_mapping()
|
ask_mapping = template.get_ask_mapping()
|
||||||
if template.survey_enabled and (not template.ask_variables_on_launch):
|
if template.survey_enabled and (not template.ask_variables_on_launch):
|
||||||
ask_mapping.pop('extra_vars')
|
ask_mapping.pop('extra_vars')
|
||||||
provided_vars = set(prompts['extra_vars'].keys())
|
provided_vars = set(prompts.get('extra_vars', {}).keys())
|
||||||
survey_vars = set(
|
survey_vars = set(
|
||||||
element.get('variable') for element in
|
element.get('variable') for element in
|
||||||
template.survey_spec.get('spec', {}) if 'variable' in element
|
template.survey_spec.get('spec', {}) if 'variable' in element
|
||||||
|
|||||||
Reference in New Issue
Block a user