Browse Source

fix index (#4158)

pull/4161/head
Guo Lei 2 years ago
committed by GitHub
parent
commit
b63d1e9c6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/shell/command_s3_configure.go

2
weed/shell/command_s3_configure.go

@ -111,7 +111,7 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io
for _, i := range exists { for _, i := range exists {
s3cfg.Identities[idx].Credentials = append( s3cfg.Identities[idx].Credentials = append(
s3cfg.Identities[idx].Credentials[:i], s3cfg.Identities[idx].Credentials[:i],
s3cfg.Identities[idx].Credentials[:i+1]...,
s3cfg.Identities[idx].Credentials[i+1:]...,
) )
} }

Loading…
Cancel
Save