X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4d52bd4c0f8e6ae7679145846b7bc7845d8ace..752fbabf060f31db7de3f03d632bc047baba5087:/cookbooks/munin/libraries/expand.rb?ds=sidebyside diff --git a/cookbooks/munin/libraries/expand.rb b/cookbooks/munin/libraries/expand.rb index dcd73cb69..4dadd14d3 100644 --- a/cookbooks/munin/libraries/expand.rb +++ b/cookbooks/munin/libraries/expand.rb @@ -5,7 +5,7 @@ class Chef if node.is_a?(Hash) template.gsub(/%%([^%]+)%%/) { node[Regexp.last_match[1].to_sym] } else - template.gsub("%%", node) + template.gsub("%%%", node.tr("-", "_")).gsub("%%", node) end end.join(" ") end