Issue #857 has been updated by masterzen.
Affected version set to 0.24.4
jamtur01 wrote:
> When multiple classes of the same name are defined:
>
> class mysql {
> notice('This is a load of the [[MySQL]] class')
> }
>
> class mysql {
> notice('This is a load of the second [[MySQL]] class')
> }
>
> class mysql {
> notice('This is a load of the third [[MySQL]] class')
> }
>
> According to Luke the contents of each new class of the same name are just
> added to the initial class and processed.
>
> Testing indicates that this isn't the behaviour and in fact only the first
> class is processed, i.e. using the above example the only notice returned is:
>
> "notice: mysql: This is a load of the [[MySQL]] class"
>
> I recommend that either this configuration throws an error - making classes
> unique - or the combination behaviour is fixed to include all content of each
> class.
I just fixed it in the tickets/0.24.x/857 branch in my github repository:
http://github.com/masterzen/puppet/tree/tickets%2F0.24.x%2F857
----------------------------------------
Bug #857: Behaviour of Puppet when multiple classes of the same name are defined
http://projects.reductivelabs.com/issues/show/857
Author: jamtur01
Status: Accepted
Priority: Normal
Assigned to: luke
Category: language
Target version: 0.25.0
Complexity: Unknown
Patch: None
Affected version: 0.24.4
Keywords:
When multiple classes of the same name are defined:
class mysql {
notice('This is a load of the [[MySQL]] class')
}
class mysql {
notice('This is a load of the second [[MySQL]] class')
}
class mysql {
notice('This is a load of the third [[MySQL]] class')
}
According to Luke the contents of each new class of the same name are just
added to the initial class and processed.
Testing indicates that this isn't the behaviour and in fact only the first
class is processed, i.e. using the above example the only notice returned is:
"notice: mysql: This is a load of the [[MySQL]] class"
I recommend that either this configuration throws an error - making classes
unique - or the combination behaviour is fixed to include all content of each
class.
----------------------------------------
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---