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:
softwarefactory-project-zuul[bot]
2019-07-08 19:36:31 +00:00
committed by GitHub

View File

@@ -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]);