Skip to content

Commit

Permalink
Fix: Device ID set on update
Browse files Browse the repository at this point in the history
  • Loading branch information
BegBlev authored and fbreckle committed Aug 1, 2022
1 parent b6fc9c7 commit 288aea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/resource_netbox_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ func resourceNetboxDeviceUpdate(ctx context.Context, d *schema.ResourceData, m i

typeIDValue, ok := d.GetOk("device_type_id")
if ok {
tenantID := int64(typeIDValue.(int))
data.Tenant = &tenantID
typeID := int64(typeIDValue.(int))
data.DeviceType = &typeID
}

tenantIDValue, ok := d.GetOk("tenant_id")
Expand Down

0 comments on commit 288aea1

Please sign in to comment.