diff --git a/okta/data_source_okta_network_zone.go b/okta/data_source_okta_network_zone.go index aa5dfb64a..046ed0e53 100644 --- a/okta/data_source_okta_network_zone.go +++ b/okta/data_source_okta_network_zone.go @@ -143,7 +143,7 @@ func findNetworkZoneByName(ctx context.Context, m interface{}, name string) (*v5 } for i := range moreZones { if getNetworkZoneName(moreZones[i]) == name { - return &zones[i], nil + return &moreZones[i], nil } } } else {