Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12b724d

Browse files
committed
Allow 0 instances
Signed-off-by: Danny Kopping <danny@coder.com>
1 parentb7e9b4f commit12b724d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎provider/workspace_preset.go

Lines changed: 2 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp