[Pkg-puppet-devel] Bug#563555: puppetmaster - Class redefinition is allowed

Bastian Blank waldi at debian.org
Sun Jan 3 18:54:06 UTC 2010


Package: puppetmaster
Version: 0.25.1-3
Severity: important

I found nothing in the documentation about this, so it maybe just a
documentation bug, but for me the behaviour is surprising:

| class test {
|   @@sshkey { $fqdn: type => rsa, key => $sshrsakey, alias => ["test"] }
| } 
| class test {
|   Sshkey[$fqdn] { alias => ["test"] }
| }
| include test

This example bails out because of the redefinition on the alias
parameter, not because of the redefinition of the class.

The second class definition is merged with the first, something no other
language allows. As the complete namespace is flat, this can produce
hard to find problems.

Bastian

-- 
There is a multi-legged creature crawling on your shoulder.
		-- Spock, "A Taste of Armageddon", stardate 3193.9





More information about the Pkg-puppet-devel mailing list