From 9c4d59a96eccf606f4ad31e314d8ed5e131b51f1 Mon Sep 17 00:00:00 2001 From: Dan Cazacu Date: Mon, 18 Nov 2024 16:17:10 +0200 Subject: [PATCH] fix(656): marked data_source_netbox_vlan_group: name or slug definitions as - optional when scope_type is defined --- netbox/data_source_netbox_vlan_group.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox/data_source_netbox_vlan_group.go b/netbox/data_source_netbox_vlan_group.go index 2d63133b..4ae52051 100644 --- a/netbox/data_source_netbox_vlan_group.go +++ b/netbox/data_source_netbox_vlan_group.go @@ -19,19 +19,20 @@ func dataSourceNetboxVlanGroup() *schema.Resource { Type: schema.TypeString, Computed: true, Optional: true, - AtLeastOneOf: []string{"name", "slug"}, + AtLeastOneOf: []string{"name", "slug", "scope_type"}, }, "slug": { Type: schema.TypeString, Optional: true, Computed: true, - AtLeastOneOf: []string{"name", "slug"}, + AtLeastOneOf: []string{"name", "slug", "scope_type"}, }, "scope_type": { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice(resourceNetboxVlanGroupScopeTypeOptions, false), Description: buildValidValueDescription(resourceNetboxVlanGroupScopeTypeOptions), + AtLeastOneOf: []string{"name", "slug", "scope_type"}, }, "scope_id": { Type: schema.TypeInt,