aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_s3_configure.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_s3_configure.go')
-rw-r--r--weed/shell/command_s3_configure.go2
1 files changed, 1 insertions, 1 deletions
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:]...,
)
}