Issue #12952 has been reported by Timur Batyrshin.
----------------------------------------
Bug #12952: inconsistent processing variable defaults in parametrized classes
https://projects.puppetlabs.com/issues/12952
Author: Timur Batyrshin
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
When using parameter defaults for parametrized classes it seems they are
processed in random order:
<pre>
$ cat test.pp
class foo (
$x = 'bar',
$y = $x
) {
notify { "result:${y}" : }
}
include foo
$ puppet apply test.pp
notice: result:bar
notice: /Stage[main]/Foo/Notify[result:bar]/message: defined 'message' as
'result:bar'
notice: Finished catalog run in 0.03 seconds
$ cat test2.pp
class foo (
$xx = 'bar',
$yy = $xx
) {
notify { "result:${yy}" : }
}
include foo
$ puppet apply test2.pp
notice: result:
notice: /Stage[main]/Foo/Notify[result:]/message: defined 'message' as 'result:'
notice: Finished catalog run in 0.03 seconds
</pre>
I've seen that on 2.7.9 and 2.7.11.
I guess that should produce the same result in both cases or produce
errors/warnings.
--
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://projects.puppetlabs.com/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.