mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -02:30
removing UI parsing for LDAP User and Group Search fields
the UI parsing was formatting the user input in a way that makes the API angry
This commit is contained in:
@@ -75,7 +75,10 @@ export default [
|
|||||||
if(key === "AD_HOC_COMMANDS"){
|
if(key === "AD_HOC_COMMANDS"){
|
||||||
$scope[key] = data[key].toString();
|
$scope[key] = data[key].toString();
|
||||||
}
|
}
|
||||||
else{
|
else if(key === "AUTH_LDAP_USER_SEARCH" || key === "AUTH_LDAP_GROUP_SEARCH"){
|
||||||
|
$scope[key] = data[key];
|
||||||
|
}
|
||||||
|
else {
|
||||||
$scope[key] = ConfigurationUtils.arrayToList(data[key], key);
|
$scope[key] = ConfigurationUtils.arrayToList(data[key], key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -375,8 +378,15 @@ export default [
|
|||||||
payload[key] = $scope[key].value;
|
payload[key] = $scope[key].value;
|
||||||
}
|
}
|
||||||
} else if($scope.configDataResolve[key].type === 'list' && $scope[key] !== null) {
|
} else if($scope.configDataResolve[key].type === 'list' && $scope[key] !== null) {
|
||||||
// Parse lists
|
|
||||||
payload[key] = ConfigurationUtils.listToArray($scope[key], key);
|
if(key === "AUTH_LDAP_USER_SEARCH" || key === "AUTH_LDAP_GROUP_SEARCH"){
|
||||||
|
payload[key] = $scope[key];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Parse lists
|
||||||
|
payload[key] = ConfigurationUtils.listToArray($scope[key], key);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if($scope.configDataResolve[key].type === 'nested object') {
|
else if($scope.configDataResolve[key].type === 'nested object') {
|
||||||
if($scope[key] === '') {
|
if($scope[key] === '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user