mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
fix fields with no defaults showing in extra_vars display when not provided
This commit is contained in:
@@ -130,7 +130,7 @@ class SurveyJobTemplateMixin(models.Model):
|
||||
default = survey_element.get('default')
|
||||
variable_key = survey_element.get('variable')
|
||||
if survey_element.get('type') == 'password':
|
||||
if variable_key in kwargs_extra_vars:
|
||||
if variable_key in kwargs_extra_vars and default:
|
||||
kw_value = kwargs_extra_vars[variable_key]
|
||||
if kw_value.startswith('$encrypted$') and kw_value != default:
|
||||
kwargs_extra_vars[variable_key] = default
|
||||
|
||||
Reference in New Issue
Block a user