Quick fix for creating a credential. This addresses a bug where a javascript error would be thrown when creating a machine credential with no password prompt (and probably other types of credentials).

This commit is contained in:
Michael Abashian 2016-11-03 10:23:48 -04:00
parent e01c86e88f
commit bc45c04c44

View File

@ -245,7 +245,7 @@ angular.module('CredentialsHelper', ['Utilities'])
}
data.kind = scope.kind.value;
if (scope.become_method === null) {
if (scope.become_method === null || typeof scope.become_method === 'undefined') {
data.become_method = "";
data.become_username = "";
data.become_password = "";