Skip to content

Commit

Permalink
templates: fix timeline.json.erb dependency
Browse files Browse the repository at this point in the history
Require ostruct module before using OpenStruct.
  • Loading branch information
dclaisse committed Jun 4, 2024
1 parent 2ab89ef commit 3fcb7a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/consul-ui/timeline.json.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<%
require 'json'
require 'ostruct'
require 'set'
services_blacklist_raw = (ENV['EXCLUDE_SERVICES'] || 'lbl7.*,netsvc-probe.*,consul-probed.*').split(',')
services_blacklist = services_blacklist_raw.map { |v| Regexp.new(v) } # Compute the health of a Service
Expand Down

0 comments on commit 3fcb7a0

Please sign in to comment.