Skip to content

Commit 12b724d

Browse files
committed
Allow 0 instances
Signed-off-by: Danny Kopping <[email protected]>
1 parent b7e9b4f commit 12b724d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

provider/workspace_preset.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package provider
22

33
import (
44
"context"
5+
56
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
67
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
78
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
@@ -90,7 +91,7 @@ func workspacePresetDataSource() *schema.Resource {
9091
Type: schema.TypeInt,
9192
Required: true,
9293
ForceNew: true,
93-
ValidateFunc: validation.IntAtLeast(1),
94+
ValidateFunc: validation.IntAtLeast(0),
9495
},
9596
},
9697
},

0 commit comments

Comments
 (0)