X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/3a4d52bd4c0f8e6ae7679145846b7bc7845d8ace..157d98f404bf4fb5dcdf6752f807982aaf297261:/cookbooks/munin/libraries/expand.rb 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