mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-05 04:56:11 +00:00
Fix typo in group removed warning
Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
@@ -416,12 +416,12 @@ func getDownstreamGroupsFromPinnipedSession(session *psession.PinnipedSession) (
|
||||
return downstreamGroups, nil
|
||||
}
|
||||
|
||||
func warnIfGroupsChanged(ctx context.Context, oldGroups []string, refreshedGroups []string, username string) {
|
||||
added, removed := diffSortedGroups(oldGroups, refreshedGroups)
|
||||
func warnIfGroupsChanged(ctx context.Context, oldGroups, newGroups []string, username string) {
|
||||
added, removed := diffSortedGroups(oldGroups, newGroups)
|
||||
if len(added) > 0 {
|
||||
warning.AddWarning(ctx, "", fmt.Sprintf("User %q has been added to the following groups: %q", username, added))
|
||||
}
|
||||
if len(removed) > 0 {
|
||||
warning.AddWarning(ctx, "", fmt.Sprintf("User %q has been removed from the following groups: %q: ", username, removed))
|
||||
warning.AddWarning(ctx, "", fmt.Sprintf("User %q has been removed from the following groups: %q", username, removed))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user