From c1a20790b1e47ccbcd6948ef25809927cf660663 Mon Sep 17 00:00:00 2001 From: Les Aker Date: Tue, 25 Jul 2023 21:59:05 -0400 Subject: [PATCH] fix data lookup --- internal/provider/resource_device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/resource_device.go b/internal/provider/resource_device.go index fae4ac268..e3fadd74b 100644 --- a/internal/provider/resource_device.go +++ b/internal/provider/resource_device.go @@ -363,7 +363,7 @@ func toPortOverride(data map[string]interface{}) (unifi.DevicePortOverrides, err profileID := data["port_profile_id"].(string) opMode := data["op_mode"].(string) aggregateNumPorts := data["aggregate_num_ports"].(int) - nativeNetworkID := d.Get("native_network_id").(string) + nativeNetworkID := data["native_network_id"].(string) return unifi.DevicePortOverrides{ PortIDX: idx,