mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 14:09:28 -02:30
allow clearing of credential become
This commit is contained in:
@@ -218,7 +218,11 @@ angular.module('CredentialsHelper', ['Utilities'])
|
|||||||
}
|
}
|
||||||
|
|
||||||
data.kind = scope.kind.value;
|
data.kind = scope.kind.value;
|
||||||
data.become_method = (scope.become_method.value) ? scope.become_method.value : "";
|
if (scope.become_method === null) {
|
||||||
|
data.become_method = "";
|
||||||
|
} else {
|
||||||
|
data.become_method = (scope.become_method.value) ? scope.become_method.value : "";
|
||||||
|
}
|
||||||
switch (data.kind) {
|
switch (data.kind) {
|
||||||
case 'ssh':
|
case 'ssh':
|
||||||
data.password = scope.ssh_password;
|
data.password = scope.ssh_password;
|
||||||
|
|||||||
Reference in New Issue
Block a user