From b63d1e9c6b59843085e495abf4c4b66fdfedd435 Mon Sep 17 00:00:00 2001 From: Guo Lei Date: Sat, 28 Jan 2023 22:55:27 +0800 Subject: [PATCH] fix index (#4158) --- weed/shell/command_s3_configure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_s3_configure.go b/weed/shell/command_s3_configure.go index e7387a4a0..33c5a4cfc 100644 --- a/weed/shell/command_s3_configure.go +++ b/weed/shell/command_s3_configure.go @@ -111,7 +111,7 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io for _, i := range exists { s3cfg.Identities[idx].Credentials = append( s3cfg.Identities[idx].Credentials[:i], - s3cfg.Identities[idx].Credentials[:i+1]..., + s3cfg.Identities[idx].Credentials[i+1:]..., ) }