fs: Do not return reservedBucket names in ListBuckets() (#3754)

Make sure to skip reserved bucket names in `ListBuckets()`
current code didn't skip this properly and also generalize
this behavior for both XL and FS.
This commit is contained in:
Harshavardhana
2017-02-16 14:52:14 -08:00
committed by GitHub
parent 8816b08aae
commit 50b4e54a75
28 changed files with 85 additions and 104 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func makeS3Peers(eps []*url.URL) s3Peers {
accessKey: serverCred.AccessKey,
secretKey: serverCred.SecretKey,
serverAddr: ep.Host,
serviceEndpoint: path.Join(reservedBucket, s3Path),
serviceEndpoint: path.Join(minioReservedBucketPath, s3Path),
secureConn: globalIsSSL,
serviceName: "S3",
}