From b5639468646bcf4c6571e2c18e63ac415921f0ba Mon Sep 17 00:00:00 2001 From: John Reese Date: Thu, 19 Mar 2020 19:55:20 -0400 Subject: [PATCH] Remove MinItems from data groups --- azuread/data_groups.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/azuread/data_groups.go b/azuread/data_groups.go index 053e4864ef..632e9c6bda 100644 --- a/azuread/data_groups.go +++ b/azuread/data_groups.go @@ -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, @@ -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, @@ -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 {