From 66833ac1737371f211a7b4a87b2aa385e3beca52 Mon Sep 17 00:00:00 2001 From: Shubhendu Ram Tripathi Date: Fri, 2 Feb 2024 21:21:29 +0530 Subject: [PATCH] Enable --expired-object-all-versions Signed-off-by: Shubhendu Ram Tripathi --- pkg/lifecycle/lifecycle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lifecycle/lifecycle.go b/pkg/lifecycle/lifecycle.go index c52f78c3f..10c95ffe5 100644 --- a/pkg/lifecycle/lifecycle.go +++ b/pkg/lifecycle/lifecycle.go @@ -402,7 +402,7 @@ func (e Expiration) IsDeleteMarkerExpirationEnabled() bool { // IsNull returns true if both date and days fields are null func (e Expiration) IsNull() bool { - return e.IsDaysNull() && e.IsDateNull() && !e.IsDeleteMarkerExpirationEnabled() + return e.IsDaysNull() && e.IsDateNull() && !e.IsDeleteMarkerExpirationEnabled() && !e.DeleteAll.IsEnabled() } // MarshalXML is expiration is non null