Skip to content

Commit

Permalink
Update route_table_resource.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbai committed Jan 31, 2023
1 parent 95e6294 commit 904448a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/services/network/route_table_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,9 @@ func flattenRouteTableRoutes(input *[]network.Route) []interface{} {
if props := route.RoutePropertiesFormat; props != nil {
r["address_prefix"] = *props.AddressPrefix
r["next_hop_type"] = string(props.NextHopType)
v := ""
if ip := props.NextHopIPAddress; ip != nil && *ip != "" {
v = *ip
r["next_hop_in_ip_address"] = *ip
}
r["next_hop_in_ip_address"] = v
}

results = append(results, r)
Expand Down

0 comments on commit 904448a

Please sign in to comment.