Update deps and fix build issues (#2745)

This commit is contained in:
Harshavardhana
2023-03-27 14:30:52 -07:00
committed by GitHub
parent 60d70e3668
commit 6966183bc8
7 changed files with 199 additions and 225 deletions

View File

@@ -231,9 +231,9 @@ func addBucketLifecycle(ctx context.Context, client MinioClient, params bucketAp
return errors.New("no valid lifecycle configuration requested")
}
newRule, err2 := opts.ToILMRule(lfcCfg)
if err2.ToGoError() != nil {
return err2.ToGoError()
newRule, merr := opts.ToILMRule()
if merr != nil {
return merr.ToGoError()
}
lfcCfg.Rules = append(lfcCfg.Rules, newRule)