Issue #1922 has been updated by masterzen.

Status changed from Accepted to Ready for Testing
Assigned to changed from masterzen to jamtur01
% Done changed from 0 to 100
Complexity changed from Unknown to Easy

The fix is available in the tickets/0.24.x/1922 branch of my github repository:
http://github.com/masterzen/puppet/tree/tickets/0.24.x/1922
----------------------------------------
Bug #1922: Functions squash all arguments into a single hash
http://projects.reductivelabs.com:80/issues/1922

Author: luke
Status: Ready for Testing
Priority: Normal
Assigned to: jamtur01
Category: functions
Target version: 0.24.8
Complexity: Easy
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