Issue #5089 has been reported by Dan Bode.
----------------------------------------
Bug #5089: when combining include with declaration of parameterized classes,
order matters
https://projects.puppetlabs.com/issues/5089
Author: Dan Bode
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords: include parameterized class order
Branch:
I would not expect the code order to matter when combining includes with param
class declarations:
* this works fine:
<pre>
class foo($bar='foo') {
notice($bar)
}
class{'foo': bar => 'baz'}
include foo
</pre>
<pre>
notice: Scope(Class[Foo]): baz
</pre>
* changing the order of the include breaks it:
<pre>
class foo($bar='foo') {
notice($bar)
}
include foo
class{'foo': bar => 'baz'}
</pre>
<pre>
notice: Scope(Class[Foo]): foo
Duplicate definition: Class[Foo] is already defined; cannot redefine at
/tmp/example.pp:5 on node puppetmaster.localdomain
</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://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.