Skip to content

Commit

Permalink
fix(656): marked data_source_netbox_vlan_group: name or slug definiti…
Browse files Browse the repository at this point in the history
…ons as

- optional when scope_type is defined
  • Loading branch information
Dan Cazacu authored and fbreckle committed Jan 2, 2025
1 parent f6d2f3e commit 9c4d59a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netbox/data_source_netbox_vlan_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9c4d59a

Please sign in to comment.