mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Fixed credential prompting bug where only one password field is ever shown even if multiple passwords are required
This commit is contained in:
parent
ea900b6f95
commit
a6dd7dbf07
@ -74,11 +74,14 @@ export default
|
||||
};
|
||||
if(cred.inputs.password && cred.inputs.password === "ASK") {
|
||||
scope.promptData.prompts.credentials.passwords.ssh = credPassObj;
|
||||
} else if(cred.inputs.become_password && cred.inputs.become_password === "ASK") {
|
||||
}
|
||||
if(cred.inputs.become_password && cred.inputs.become_password === "ASK") {
|
||||
scope.promptData.prompts.credentials.passwords.become = credPassObj;
|
||||
} else if(cred.inputs.ssh_key_unlock && cred.inputs.ssh_key_unlock === "ASK") {
|
||||
}
|
||||
if(cred.inputs.ssh_key_unlock && cred.inputs.ssh_key_unlock === "ASK") {
|
||||
scope.promptData.prompts.credentials.passwords.ssh_key_unlock = credPassObj;
|
||||
} else if(cred.inputs.vault_password && cred.inputs.vault_password === "ASK") {
|
||||
}
|
||||
if(cred.inputs.vault_password && cred.inputs.vault_password === "ASK") {
|
||||
credPassObj.vault_id = cred.inputs.vault_id;
|
||||
if(!scope.promptData.prompts.credentials.passwords.vault) {
|
||||
scope.promptData.prompts.credentials.passwords.vault = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user