From 6548dbc574a13f1f1329cf4de2efa7c0429d8f22 Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Thu, 16 May 2024 15:06:16 +0300 Subject: [PATCH] Update out_filter in nsxt_policy_gateway_route_map The code assigns the values into the wrong variable and therefore changes aren't applied correctly. Fixes: #1210 Signed-off-by: Kobi Samoray --- nsxt/resource_nsxt_policy_tier0_inter_vrf_routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsxt/resource_nsxt_policy_tier0_inter_vrf_routing.go b/nsxt/resource_nsxt_policy_tier0_inter_vrf_routing.go index 906085f76..7d497d1f1 100644 --- a/nsxt/resource_nsxt_policy_tier0_inter_vrf_routing.go +++ b/nsxt/resource_nsxt_policy_tier0_inter_vrf_routing.go @@ -162,7 +162,7 @@ func getPolicyInterVRFRoutingFromSchema(d *schema.ResourceData) model.PolicyInte } var outFilter []string if brlMap["out_filter"] != nil { - inFilter = interface2StringList(brlMap["out_filter"].([]interface{})) + outFilter = interface2StringList(brlMap["out_filter"].([]interface{})) } bgpRouteLeaking = append(bgpRouteLeaking, model.BgpRouteLeaking{ AddressFamily: &addressFamily,