Issue #1922 has been updated by jamtur01.

Status changed from Ready for Testing to Closed

Pushed in commit:"b22d148e6d6eb36c9b02a58dc0c04c9650d5207b" in branch 0.24.x
----------------------------------------
Bug #1922: Functions squash all arguments into a single hash
http://projects.reductivelabs.com:80/issues/1922

Author: luke
Status: Closed
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