KEYCLOAK-2582 Wrong message after synchronization (removing user from ldap)

This commit is contained in:
mposolda 2016-03-07 23:18:32 +01:00 committed by Bill Burke
parent f72b0f3f6d
commit 0708bceea7

View file

@ -96,7 +96,10 @@ public class UserFederationSyncResult {
if (ignored) { if (ignored) {
return "Synchronization ignored as it's already in progress"; return "Synchronization ignored as it's already in progress";
} else { } else {
String status = String.format("%d imported users, %d updated users, %d removed users", added, updated, removed); String status = String.format("%d imported users, %d updated users", added, updated);
if (removed > 0) {
status += String.format(", %d removed users", removed);
}
if (failed != 0) { if (failed != 0) {
status += String.format(", %d users failed sync! See server log for more details", failed); status += String.format(", %d users failed sync! See server log for more details", failed);
} }