Skip to content

Commit

Permalink
fix: log when removing policies from user
Browse files Browse the repository at this point in the history
  • Loading branch information
phlg committed Aug 13, 2024
1 parent 4f1fbf3 commit 314d637
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/s3/factory/minioS3Client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"crypto/tls"
"crypto/x509"
"encoding/base64"
"fmt"
"net/http"
"os"
"strings"
Expand Down Expand Up @@ -355,7 +354,7 @@ func (minioS3Client *MinioS3Client) CheckUserCredentialsValid(name string, acces
}

func (minioS3Client *MinioS3Client) RemovePoliciesFromUser(accessKey string, policies []string) error {
s3Logger.Info(fmt.Sprintf("Remove policy [%s] from user [%s]", policies, accessKey))
s3Logger.Info("Removing policies from user", "user", accessKey, "policies", policies)

opts := madmin.PolicyAssociationReq{
Policies: policies,
Expand Down

0 comments on commit 314d637

Please sign in to comment.