Fix bucketpolicy to handle s3 and minio policy names separately.

Also fix an apparent bug in GetBucketPolicy{}
This commit is contained in:
Harshavardhana
2015-03-19 12:02:39 -07:00
parent 7496d89f8f
commit c3602967ab
3 changed files with 84 additions and 17 deletions

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) {