Skip to content

Commit ebd2a2a

Browse files
committed
fix min duration check
1 parent 5bf8339 commit ebd2a2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/servicewait/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ provider "plural" {
1313

1414
resource "plural_service_wait" "test" {
1515
service_id = "b775ef81-b469-4c8c-969d-1d35e97a4ce5"
16-
warmup = "30s"
16+
warmup = "0s"
1717
duration = "1m"
1818
}
1919

internal/validator/min_duration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (v minDurationValidator) ValidateString(_ context.Context, request validato
4040
return
4141
}
4242

43-
if duration < v.minDuration {
43+
if duration <= v.minDuration {
4444
response.Diagnostics.AddAttributeError(
4545
request.Path,
4646
"Duration Too Short",

0 commit comments

Comments
 (0)