]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
I wonder if this is the right ruby syntax
authorPeter Palfrader <peter@palfrader.org>
Wed, 2 Mar 2011 12:02:50 +0000 (13:02 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 2 Mar 2011 12:02:50 +0000 (13:02 +0100)
modules/puppetmaster/lib/puppet/parser/functions/allnodeinfo.rb

index 06b074d8ddd741507817b2764429ffa2c659ede2..11baf101b880b170f5eb2c20a33b7bcee54cd3bc 100644 (file)
@@ -4,7 +4,7 @@ module Puppet::Parser::Functions
       required = args.shift.split()
       optional = args.shift.split()
 
-      allhosts = function_ldapinfo('*', required+optional )
+      allhosts = function_ldapinfo('*', *(required+optional) )
       res = {}
       allhosts.each_pair do |hostname, host|
           # If a returned value doesn't have all the attributes we're searching for, skip