Issue #1372 has been updated by Lee Lowder.
Another update. It seems if you use parameter syntax it works as expected
(includes the class).
$ cat bugtest.pp
class puppet-tn {
notice ("Class puppet-tn")
}
node /puppet-tn/ {
class { 'puppet-tn': }
notice ("Node puppet-tn")
}
user@puppet-tn:~$ puppet apply --verbose bugtest.pp
notice: Scope(Node[puppet-tn]): Node puppet-tn
notice: Scope(Class[Puppet-tn]): Class puppet-tn
info: Applying configuration version '1353015627'
notice: Finished catalog run in 0.04 seconds
----------------------------------------
Bug #1372: Class names that match the node name are not evaluated
https://projects.puppetlabs.com/issues/1372#change-76735
Author: Digant Kasundra
Status: Accepted
Priority: Normal
Assignee:
Category: language
Target version: 2.7.x
Affected Puppet version: 0.24.4
Keywords: devtriage
Branch:
If I setup:
class subversion {
warning("I am class subversion")
}
and in my nodes.pp I have
node subversion { include subversion }
When i run puppet in verbose mode on subversion, I never see that warning.
--
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.