Skip to content

Commit

Permalink
fix: Fix choices field for select and multiselect custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
amhn authored and smutel committed May 23, 2023
1 parent abd3269 commit e7c882c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions netbox/extras/resource_netbox_extras_custom_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func ResourceNetboxExtrasCustomField() *schema.Resource {

var customFieldRequiredFields = []string{
"created",
"choices",
"last_updated",
"name",
"slug",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ func testAccCheckNetboxExtrasCustomFieldMultiSelectConfig(nameSuffix string, res
]
type = "multiselect"
{{ if eq .resourcefull "true" }}
description = "Test custom field"
choices = [
"test",
"test2"
]
{{ if eq .resourcefull "true" }}
description = "Test custom field"
label = "Test Label for CF"
group_name = "testgroup"
ui_visibility = "hidden"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ func testAccCheckNetboxExtrasCustomFieldSelectConfig(nameSuffix string, resource
]
type = "select"
{{ if eq .resourcefull "true" }}
description = "Test custom field"
choices = [
"test",
"test2"
]
{{ if eq .resourcefull "true" }}
description = "Test custom field"
label = "Test Label for CF"
group_name = "testgroup"
ui_visibility = "hidden"
Expand Down

0 comments on commit e7c882c

Please sign in to comment.