Skip to content

Commit 0b019e9

Browse files
committed
Do not use route options when nil in manifest update
1 parent ca5f08d commit 0b019e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/messages/manifest_routes_update_message.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ def contains_invalid_lb_algo?(routes)
6464

6565
def manifest_route_mappings
6666
@manifest_route_mappings ||= routes.map do |route|
67-
{
67+
r = {
6868
route: ManifestRoute.parse(route[:route], route[:options]),
69-
protocol: route[:protocol],
70-
options: route[:options]
69+
protocol: route[:protocol]
7170
}
71+
r[:options] = route[:options] unless route[:options].nil?
72+
r
7273
end
7374
end
7475

0 commit comments

Comments
 (0)