mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
Merge pull request #4282 from saito-hideki/issue/tower_3590
Fix to use "type" as the condition value for Machine credential to cover I18N Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -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