Skip to content

Commit

Permalink
buckets cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Jan 30, 2024
1 parent 2b970ba commit e2262c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iqshell/storage/servers/all_buckets.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ func allBuckets(cfg *config.Config, info ListApiInfo) ([]BucketInfo, *data.CodeE
}

ucHost := cfg.Hosts.GetOneUc()
reqURL := fmt.Sprintf("%s/v3/buckets", utils.Endpoint(cfg.UseHttps.Value(), ucHost))
reqURL := fmt.Sprintf("%s/v3/buckets?shared=rd", utils.Endpoint(cfg.UseHttps.Value(), ucHost))
if len(info.Region) > 0 {
reqURL = fmt.Sprintf("%s?region=%s", reqURL, info.Region)
reqURL = fmt.Sprintf("%s&region=%s", reqURL, info.Region)
}
var buckets []BucketInfo
e := bucketManager.Client.CredentialedCall(workspace.GetContext(), bucketManager.Mac, auth.TokenQiniu, &buckets, "POST", reqURL, nil)
Expand Down

0 comments on commit e2262c5

Please sign in to comment.