mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
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:
parent
e01c86e88f
commit
bc45c04c44
@ -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 = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user