Skip to content

Commit 1fa06dc

Browse files
add minItems for the required field scopes (#4634) (#3098)
Signed-off-by: Modular Magician <[email protected]>
1 parent cb4d099 commit 1fa06dc

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.changelog/4634.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
compute: added minimum for `scopes` field to `google_compute_instance` resource
3+
```

google-beta/resource_compute_instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ func resourceComputeInstance() *schema.Resource {
591591
"scopes": {
592592
Type: schema.TypeSet,
593593
Required: true,
594+
MinItems: 1,
594595
Description: `A list of service scopes.`,
595596
Elem: &schema.Schema{
596597
Type: schema.TypeString,

google-beta/resource_dataflow_flex_template_job_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
11-
"google.golang.org/api/compute/v1"
11+
compute "google.golang.org/api/compute/v1"
1212
)
1313

1414
func TestAccDataflowFlexTemplateJob_basic(t *testing.T) {

0 commit comments

Comments
 (0)