support tagging based policy conditions (#15763)

This commit is contained in:
Harshavardhana
2022-09-28 11:25:46 -07:00
committed by GitHub
parent 4f1ff9c4d9
commit 41b633f5ea
9 changed files with 189 additions and 117 deletions

View File

@@ -20,7 +20,6 @@ package lifecycle
import (
"encoding/xml"
"io"
"log"
"github.com/minio/minio-go/v7/pkg/tags"
)
@@ -172,7 +171,6 @@ func (f Filter) TestTags(userTags string) bool {
parsedTags, err := tags.ParseObjectTags(userTags)
if err != nil {
log.Printf("Unexpected object tag found: `%s`\n", userTags)
return false
}
tagsMap := parsedTags.ToMap()