mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
Check to make sure extraVarsClone exists before attempting to cull passwords
This commit is contained in:
@@ -82,7 +82,7 @@ export default
|
|||||||
// password $encrypted$ strings so we clone it
|
// password $encrypted$ strings so we clone it
|
||||||
const extraVarsClone = _.cloneDeep(scope.promptData.extraVars);
|
const extraVarsClone = _.cloneDeep(scope.promptData.extraVars);
|
||||||
// Replace the survey passwords with $encrypted$ to display to the user
|
// Replace the survey passwords with $encrypted$ to display to the user
|
||||||
const cleansedExtraVars = Object.assign(extraVarsClone, surveyPasswords);
|
const cleansedExtraVars = extraVarsClone ? Object.assign(extraVarsClone, surveyPasswords) : {};
|
||||||
|
|
||||||
scope.promptExtraVars = $.isEmptyObject(scope.promptData.extraVars) ? '---' : '---\n' + jsyaml.safeDump(cleansedExtraVars);
|
scope.promptExtraVars = $.isEmptyObject(scope.promptData.extraVars) ? '---' : '---\n' + jsyaml.safeDump(cleansedExtraVars);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user