mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Check to make sure vm.promptData.launchConf.passwords_needed_to_start exists before looping
This commit is contained in:
@@ -67,6 +67,7 @@ export default [ 'Rest', 'GetBasePath', 'ProcessErrors', 'CredentialTypeModel',
|
|||||||
|
|
||||||
vm.promptData.prompts.credentials.passwords = {};
|
vm.promptData.prompts.credentials.passwords = {};
|
||||||
|
|
||||||
|
if(vm.promptData.launchConf.passwords_needed_to_start) {
|
||||||
vm.promptData.launchConf.passwords_needed_to_start.forEach((passwordNeeded) => {
|
vm.promptData.launchConf.passwords_needed_to_start.forEach((passwordNeeded) => {
|
||||||
if(passwordNeeded === "ssh_password") {
|
if(passwordNeeded === "ssh_password") {
|
||||||
vm.promptData.prompts.credentials.passwords.ssh = {};
|
vm.promptData.prompts.credentials.passwords.ssh = {};
|
||||||
@@ -92,6 +93,7 @@ export default [ 'Rest', 'GetBasePath', 'ProcessErrors', 'CredentialTypeModel',
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
vm.promptData.credentialTypeMissing = [];
|
vm.promptData.credentialTypeMissing = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user