Issue #1922 has been reported by luke.

----------------------------------------
Bug #1922: Functions squash all arguments into a single hash
http://projects.reductivelabs.com/issues/1922

Author: luke
Status: Accepted
Priority: Normal
Assigned to: masterzen
Category: functions
Target version: 0.24.8
Complexity: Unknown
Affected version: 0.24.7
Keywords: 


The fix for #1682 does some funky things to functions.  Previously, arguments 
were passed through as an array, but now they're always flattened.  Given this 
code:
<pre>
$ary = ["foo", "bar"]
testing $ary, "boo", "baz"
</pre>
With a simple function that just prints the arguments, in 0.24.6 I got this:
<pre>
warning: [["foo", "bar"], "boo", "baz"]
</pre>
But with 0.24.7 I get this:
<pre>
warning: ["foo", "bar", "boo", "baz"]
</pre>

The question becomes, what's the right solution?

It seems like we should pass an array straight through, and if one of the 
arguments in that array is also an array, then the function should receive an 
array of arrays.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to