Skip to content

Commit

Permalink
add minItems for the required field scopes (#4634) (#3098)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Mar 30, 2021
1 parent cb4d099 commit 1fa06dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/4634.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
compute: added minimum for `scopes` field to `google_compute_instance` resource
```
1 change: 1 addition & 0 deletions google-beta/resource_compute_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ func resourceComputeInstance() *schema.Resource {
"scopes": {
Type: schema.TypeSet,
Required: true,
MinItems: 1,
Description: `A list of service scopes.`,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion google-beta/resource_dataflow_flex_template_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"google.golang.org/api/compute/v1"
compute "google.golang.org/api/compute/v1"
)

func TestAccDataflowFlexTemplateJob_basic(t *testing.T) {
Expand Down

0 comments on commit 1fa06dc

Please sign in to comment.