]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/libraries/expand.rb
Allow AF_UNIX sockets for cgimap
[chef.git] / cookbooks / munin / libraries / expand.rb
index f9c447387b2d0dadbcb558dfb208d53d81a6e270..248c5ad5f07e4986dd9ff1e8100a8c05311b884d 100644 (file)
@@ -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