X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a661370166bbac0bbe8c8b1f0ba947e3a269edee..90e8109a883d6bbae266acf94a90b54526b3d443:/cookbooks/munin/libraries/expand.rb?ds=sidebyside diff --git a/cookbooks/munin/libraries/expand.rb b/cookbooks/munin/libraries/expand.rb index f9c447387..248c5ad5f 100644 --- a/cookbooks/munin/libraries/expand.rb +++ b/cookbooks/munin/libraries/expand.rb @@ -1,6 +1,6 @@ class Chef class Munin - def self.expand(template, nodes) + def self.expand(template, nodes, separator = " ") nodes.map do |node| if node.is_a?(Hash) template @@ -11,7 +11,7 @@ class Chef .gsub("%%%", node.tr("-", "_")) .gsub("%%", node) end - end.join(" ") + end.join(separator) end end end