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 authored and fbreckle committed Nov 4, 2024
1 parent 3a0ba4f commit 94cd4f5
Showing 1 changed file with 2 additions and 0 deletions.
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 94cd4f5

Please sign in to comment.