Skip to content

Commit

Permalink
Remove MinItems from data groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jpreese committed Mar 20, 2020
1 parent af6bf9a commit 6507f29
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions azuread/data_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"

"github.com/terraform-providers/terraform-provider-azuread/azuread/helpers/graph"
"github.com/terraform-providers/terraform-provider-azuread/azuread/helpers/validate"
)

func dataGroups() *schema.Resource {
Expand All @@ -26,23 +25,19 @@ func dataGroups() *schema.Resource {
Type: schema.TypeList,
Optional: true,
Computed: true,
MinItems: 1,
ConflictsWith: []string{"names"},
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validate.UUID,
Type: schema.TypeString,
},
},

"names": {
Type: schema.TypeList,
Optional: true,
Computed: true,
MinItems: 1,
ConflictsWith: []string{"object_ids"},
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validate.NoEmptyStrings,
Type: schema.TypeString,
},
},
},
Expand Down

0 comments on commit 6507f29

Please sign in to comment.