mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Fix conditional values for handle internationalization
Fix the variable for checking the credential type from "name" to "kind" in order to correctly handle I18N. Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
committed by
Ryan Petrello
parent
7faff07bd9
commit
869d259433
@@ -55,7 +55,7 @@ function assignInputGroupValues (apiConfig, credentialType, sourceCredentials) {
|
||||
return input;
|
||||
});
|
||||
|
||||
if (credentialType.get('name') === 'Machine') {
|
||||
if (credentialType.get('namespace') === 'ssh') {
|
||||
const become = inputs.find((field) => field.id === 'become_method');
|
||||
become._isDynamic = true;
|
||||
become._choices = Array.from(apiConfig.become_methods, method => method[0]);
|
||||
|
||||
Reference in New Issue
Block a user