mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -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:
@@ -245,7 +245,7 @@ angular.module('CredentialsHelper', ['Utilities'])
|
|||||||
}
|
}
|
||||||
|
|
||||||
data.kind = scope.kind.value;
|
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_method = "";
|
||||||
data.become_username = "";
|
data.become_username = "";
|
||||||
data.become_password = "";
|
data.become_password = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user