From 00fdab12845acd8960686eb5a638ce349352e4d1 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 8 Nov 2021 00:09:28 -0800 Subject: [PATCH] adjust client name --- weed/iamapi/iamapi_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/iamapi/iamapi_server.go b/weed/iamapi/iamapi_server.go index 9fea30780..ad1a8c4a2 100644 --- a/weed/iamapi/iamapi_server.go +++ b/weed/iamapi/iamapi_server.go @@ -49,7 +49,7 @@ var s3ApiConfigure IamS3ApiConfig func NewIamApiServer(router *mux.Router, option *IamServerOption) (iamApiServer *IamApiServer, err error) { s3ApiConfigure = IamS3ApiConfigure{ option: option, - masterClient: wdclient.NewMasterClient(option.GrpcDialOption, pb.AdminShellClient, "", "", option.Masters), + masterClient: wdclient.NewMasterClient(option.GrpcDialOption, "iam", "", "", option.Masters), } s3Option := s3api.S3ApiServerOption{Filer: option.Filer} iamApiServer = &IamApiServer{