[management] Fix networks net map generation with posture checks (#3124)

This commit is contained in:
Maycon Santos
2024-12-30 12:40:24 +01:00
committed by GitHub
parent fbce8bb511
commit 1a623943c8
9 changed files with 508 additions and 75 deletions

View File

@ -364,7 +364,7 @@ func toProtocolRoute(route *route.Route) *proto.Route {
}
func toProtocolRoutes(routes []*route.Route) []*proto.Route {
protoRoutes := make([]*proto.Route, 0)
protoRoutes := make([]*proto.Route, 0, len(routes))
for _, r := range routes {
protoRoutes = append(protoRoutes, toProtocolRoute(r))
}