X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b20599b6503be65674c3e420be6cca91b507ac0a..ff044920428608b2c04507ad52d6ab52c9d6555f:/cookbooks/munin/libraries/expand.rb diff --git a/cookbooks/munin/libraries/expand.rb b/cookbooks/munin/libraries/expand.rb index 9269761f9..081dfc5c1 100644 --- a/cookbooks/munin/libraries/expand.rb +++ b/cookbooks/munin/libraries/expand.rb @@ -1,7 +1,7 @@ class Chef class Munin def self.expand(template, nodes) - nodes.map do |node| + nodes.map do |node| if node.kind_of?(Hash) template.gsub(/%%([^%]+)%%/) { node[$1.to_sym] } else @@ -9,5 +9,5 @@ class Chef end end.join(" ") end - end + end end