Add line, col to types used in batch-expire (#18747)

This commit is contained in:
Krishnan Parthasarathi
2024-01-08 15:22:28 -08:00
committed by GitHub
parent 53ceb0791f
commit 3a90af0bcd
5 changed files with 228 additions and 24 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ import (
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v2/policy"
"github.com/minio/pkg/v2/workers"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)
var globalBatchConfig batch.Config
@@ -1564,7 +1564,7 @@ func (a adminAPIHandlers) StartBatchJob(w http.ResponseWriter, r *http.Request)
}
job := &BatchJobRequest{}
if err = yaml.UnmarshalStrict(buf, job); err != nil {
if err = yaml.Unmarshal(buf, job); err != nil {
writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
return
}