Issue #7571 has been reported by Jamison Fryman.
----------------------------------------
Bug #7571: Title and Name attributes are able to be overwritten with
parameterized classes
https://projects.puppetlabs.com/issues/7571
Author: Jamison Fryman
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Seen against 2.6.4 and 2.7.0. Not sure if this is a regression.
At a client site, demonstrating parameterized classes, discovered the ability
to override both the $name and $title variables.
Example code:
class foo($name, $title) {
notice("The name is ${name}")
notice("The title is ${title}")
}
class { 'foo':
name => 'bar',
title => 'bar',
}
Expected output
notice: Scope(Class[Foo]): The name is foo
notice: Scope(Class[Foo]): The title is foo
Received output:
notice: Scope(Class[Foo]): The name is bar
notice: Scope(Class[Foo]): The title is bar
--
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.