Issue #9259 has been reported by Daniel Piddock.
----------------------------------------
Bug #9259: Subclass attempting to override a parameterized class's parameter
silently fails
https://projects.puppetlabs.com/issues/9259
Author: Daniel Piddock
Status: Unreviewed
Priority: Low
Assignee:
Category: parameterized classes
Target version:
Affected Puppet version: 2.7.3
Keywords:
Branch:
A subclass attempting to override a parameterized class's parameter goes
through the parser but does not apply or die in a ball of flames.
Example:
class m ($m) {
notify { "$m": }
}
class a {
class { m: m => "a" }
}
class b inherits a {
Class['m'] { m => "b" }
}
include b
One might naively expect the notify to say "b", like for any other resource
type. A longer term user of parameterized classes would probably expect it all
to fail with a big error about how you can't change a parameterized class.
Instead it prints "a".
notice: a
notice: /Stage[main]/M/Notify[a]/message: defined 'message' as 'a'
--
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.