Skip to content

Commit

Permalink
Fix number of minutes in a year for service account expiration (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierresebastien authored Dec 22, 2024
1 parent d613d26 commit d846e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minio/resource_minio_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d846e5a

Please sign in to comment.