mirror of https://github.com/minio/minio.git
Merge pull request #166 from harshavardhana/pr_out_skip_policy_files
This commit is contained in:
commit
45866ff3a7
|
@ -66,6 +66,10 @@ func (storage *storage) ListBuckets() ([]mstorage.BucketMetadata, error) {
|
|||
|
||||
var metadataList []mstorage.BucketMetadata
|
||||
for _, file := range files {
|
||||
// Skip policy files
|
||||
if strings.HasSuffix(file.Name(), "_policy.json") {
|
||||
continue
|
||||
}
|
||||
if !file.IsDir() {
|
||||
return []mstorage.BucketMetadata{}, mstorage.BackendCorrupted{Path: storage.root}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue