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 b563946
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions azuread/data_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func dataGroups() *schema.Resource {
Type: schema.TypeList,
Optional: true,
Computed: true,
MinItems: 1,
ConflictsWith: []string{"names"},
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -38,7 +37,6 @@ func dataGroups() *schema.Resource {
Type: schema.TypeList,
Optional: true,
Computed: true,
MinItems: 1,
ConflictsWith: []string{"object_ids"},
Elem: &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -75,8 +73,6 @@ func dataSourceGroupsRead(d *schema.ResourceData, meta interface{}) error {

groups = append(groups, resp)
}
} else {
return fmt.Errorf("one of `object_ids` or `names` must be supplied")
}

if len(groups) != expectedCount {
Expand Down

0 comments on commit b563946

Please sign in to comment.