mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Resolve extra vars display mix-up with passworded survey questions.
This commit is contained in:
@@ -746,9 +746,14 @@ class Job(UnifiedJob, JobOptions):
|
|||||||
Hides fields marked as passwords in survey.
|
Hides fields marked as passwords in survey.
|
||||||
'''
|
'''
|
||||||
if self.survey_passwords:
|
if self.survey_passwords:
|
||||||
extra_vars = json.loads(self.extra_vars)
|
try:
|
||||||
extra_vars.update(self.survey_passwords)
|
extra_vars = json.loads(self.extra_vars)
|
||||||
return json.dumps(extra_vars)
|
for key, value in self.survey_passwords.items():
|
||||||
|
if key in extra_vars:
|
||||||
|
extra_vars[key] = value
|
||||||
|
return json.dumps(extra_vars)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
return self.extra_vars
|
return self.extra_vars
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user