mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 16:27:42 -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 = {};
|
||||
|
||||
if(vm.promptData.launchConf.passwords_needed_to_start) {
|
||||
vm.promptData.launchConf.passwords_needed_to_start.forEach((passwordNeeded) => {
|
||||
if(passwordNeeded === "ssh_password") {
|
||||
vm.promptData.prompts.credentials.passwords.ssh = {};
|
||||
@@ -92,6 +93,7 @@ export default [ 'Rest', 'GetBasePath', 'ProcessErrors', 'CredentialTypeModel',
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
vm.promptData.credentialTypeMissing = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user