From 21732f213b4033e27cbdb752c93a8e15e58f1e3c Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Tue, 4 May 2021 13:47:17 +0900 Subject: [PATCH] Fix shadow issue in CI --- authority/provisioner/provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authority/provisioner/provisioner.go b/authority/provisioner/provisioner.go index c994a5c2..6ffab03d 100644 --- a/authority/provisioner/provisioner.go +++ b/authority/provisioner/provisioner.go @@ -354,7 +354,7 @@ func DefaultIdentityFunc(ctx context.Context, p Interface, email string, usernam if !sshUserRegex.MatchString(name) { return nil, errors.Errorf("invalid principal '%s' from email '%s'", name, email) } - usernames := append(usernames, name) + usernames = append(usernames, name) if i := strings.LastIndex(email, "@"); i >= 0 { usernames = append(usernames, email[:i]) }