Skip to content

Commit

Permalink
Do not use route options when nil in manifest update
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmaen committed Nov 12, 2024
1 parent ca5f08d commit 0b019e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/messages/manifest_routes_update_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ def contains_invalid_lb_algo?(routes)

def manifest_route_mappings
@manifest_route_mappings ||= routes.map do |route|
{
r = {
route: ManifestRoute.parse(route[:route], route[:options]),
protocol: route[:protocol],
options: route[:options]
protocol: route[:protocol]
}
r[:options] = route[:options] unless route[:options].nil?
r
end
end

Expand Down

0 comments on commit 0b019e9

Please sign in to comment.