From 036939480d7c0bbc2822f9653880b311628ffb6d Mon Sep 17 00:00:00 2001 From: jenxie <32846807+jenxie@users.noreply.github.com> Date: Sat, 12 Oct 2024 21:00:17 +0200 Subject: [PATCH] Fixes 635: added missing Default to data in resourceNetboxCustomFieldUpdate and resourceNetboxCustomFieldCreate --- netbox/resource_netbox_custom_field.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/resource_netbox_custom_field.go b/netbox/resource_netbox_custom_field.go index 0e9ae0ef..a3507e64 100644 --- a/netbox/resource_netbox_custom_field.go +++ b/netbox/resource_netbox_custom_field.go @@ -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), @@ -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),