Skip to content

Commit

Permalink
*fix* boneheaded use of scope.lookupvars in template, advice from bas…
Browse files Browse the repository at this point in the history
…telfreak
  • Loading branch information
bramblek1 committed Oct 23, 2017
1 parent bf6e811 commit 0cd0817
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/blackbox_exporter.yaml.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<% require 'yaml' -%>
<% modules = scope.lookupvar('::prometheus::blackbox_exporter::modules') -%>
<% full_config = { 'modules'=>modules } -%>
<% full_config = { 'modules'=>@modules } -%>
<%= full_config.to_yaml -%>

0 comments on commit 0cd0817

Please sign in to comment.