Browse Source

Fix S3 IAM config handling to simplify checks for configuration presence

pull/7317/head
Nial 1 week ago
parent
commit
ee078cea6c
Failed to extract signature
  1. 4
      weed/command/server.go

4
weed/command/server.go

@ -322,8 +322,8 @@ func runServer(cmd *Command, args []string) bool {
}
if *isStartingS3 {
if serverIamConfig != nil && *serverIamConfig != "" {
if s3Options.iamConfig == nil || *s3Options.iamConfig == "" {
if *serverIamConfig != "" {
if *s3Options.iamConfig == "" {
s3Options.iamConfig = serverIamConfig
} else if *s3Options.iamConfig != *serverIamConfig {
glog.V(0).Infof("both -s3.iam.config(%s) and -iam.config(%s) provided; using -s3.iam.config", *s3Options.iamConfig, *serverIamConfig)

Loading…
Cancel
Save