mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
fix fields with no defaults showing in extra_vars display when not provided
This commit is contained in:
parent
5ace8dad4e
commit
755e408cd9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user