Issue #2226 has been reported by Jason Hansen.
----------------------------------------
Bug #2226: Regression between 0.24.7 and 0.24.8 with array handling.
http://projects.reductivelabs.com/issues/2226
Author: Jason Hansen
Status: Unreviewed
Priority: Normal
Assigned to:
Category: unknown
Target version:
Complexity: Unknown
Affected version: 0.24.8
Keywords:
It looks like the behavior when processing a template using arrays whose
members are variables (other arrays) has changed between 0.24.7 and 0.24.8.
Using the following code:
<pre>
#!/usr/bin/env puppet
$a = ['a1', 'a2']
$b = ['b1', 'b2']
$c = [$a, $b]
$d = ['d1', 'd2', ['ds1', 'ds2']]
file { "testfile":
path => "/tmp/testfile",
content => template("/tmp/testfile.erb")
}
</pre>
With template:
<pre>
<% c.each do |val| -%>
c val: <%= val %>
<% end -%>
<% d.each do |val| -%>
d val: <%= val %>
<% end -%>
</pre>
Produces the following template output in *0.24.7* produces the expected
behavior:
<pre>
c val: a1
c val: a2
c val: b1
c val: b2
d val: d1
d val: d2
d val: ds1
d val: ds2
</pre>
While the output with version *0.24.8* produces new behavior:
<pre>
c val: a1a2
c val: b1b2
d val: d1
d val: d2
d val: ds1
d val: ds2
</pre>
--
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
-~----------~----~----~----~------~----~------~--~---