From d846e5a24b62b72bc0df669eeb562287dae3ac99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20PIERRE?= Date: Sun, 22 Dec 2024 17:49:47 +0100 Subject: [PATCH] Fix number of minutes in a year for service account expiration (#601) --- minio/resource_minio_service_account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minio/resource_minio_service_account.go b/minio/resource_minio_service_account.go index e43b754e..acfa9c52 100644 --- a/minio/resource_minio_service_account.go +++ b/minio/resource_minio_service_account.go @@ -374,7 +374,7 @@ func validateExpiration(val any, p cty.Path) diag.Diagnostics { } key_duration := time.Until(expiration) - if key_duration < 15*time.Minute || key_duration > 365*24*time.Minute { + if key_duration < 15*time.Minute || key_duration > 365*24*60*time.Minute { diags = append(diags, diag.Diagnostic{ Severity: diag.Error, Summary: "Invalid expiration",