Fix bucketpolicy to handle s3 and minio policy names separately.

Also fix an apparent bug in GetBucketPolicy{}
This commit is contained in:
Harshavardhana committed 2015-03-19 12:22:14 -07:00
1 parent 7496d89f8f
commit c3602967ab
3 files changed
+84 -17

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ func (storage *Storage) GetBucketPolicy(bucket string) (mstorage.BucketPolicy, e
}
// get policy path
bucketPolicy := path.Join(storage.root, bucket+"_mstoragejson")
bucketPolicy := path.Join(storage.root, bucket+"_policy.json")
filestat, err := os.Stat(bucketPolicy)
if os.IsNotExist(err) {