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:
Hideki Saito 2019-07-07 12:04:07 +09:00 committed by Ryan Petrello
parent 7faff07bd9
commit 869d259433
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

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