Skip to content

Commit

Permalink
Fixes 635: added missing Default to data in resourceNetboxCustomField…
Browse files Browse the repository at this point in the history
…Update and resourceNetboxCustomFieldCreate
  • Loading branch information
jenxie committed Oct 12, 2024
1 parent 3a0ba4f commit 951a2ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TEST?=netbox/*.go
TEST_FUNC?=TestAccNetboxEventRule_basic
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
DOCKER_COMPOSE=docker compose
DOCKER_COMPOSE=podman compose

export NETBOX_VERSION=v4.0.11
export NETBOX_SERVER_URL=http://localhost:8001
Expand Down
2 changes: 2 additions & 0 deletions netbox/resource_netbox_custom_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func resourceNetboxCustomFieldUpdate(d *schema.ResourceData, m interface{}) erro
data := &models.WritableCustomField{
Name: strToPtr(d.Get("name").(string)),
Type: d.Get("type").(string),
Default: d.Get("default").(string),
Description: d.Get("description").(string),
GroupName: d.Get("group_name").(string),
Label: d.Get("label").(string),
Expand Down Expand Up @@ -157,6 +158,7 @@ func resourceNetboxCustomFieldCreate(d *schema.ResourceData, m interface{}) erro
data := &models.WritableCustomField{
Name: strToPtr(d.Get("name").(string)),
Type: d.Get("type").(string),
Default: d.Get("default").(string),
Description: d.Get("description").(string),
GroupName: d.Get("group_name").(string),
Label: d.Get("label").(string),
Expand Down

0 comments on commit 951a2ae

Please sign in to comment.