mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
allow clearing of credential become
This commit is contained in:
parent
f4ac835845
commit
a419b59245
@ -218,7 +218,11 @@ angular.module('CredentialsHelper', ['Utilities'])
|
||||
}
|
||||
|
||||
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) {
|
||||
case 'ssh':
|
||||
data.password = scope.ssh_password;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user