Issue #5447 has been updated by John Julien.
Status changed from Duplicate to Re-opened
I don't believe this problem has been resolved.
The below manifest produces the duplicate class definition error:
class app_common { }
class app_common::subclass inherits app_common { }
class {'app_common::subclass': }
class {'app_common': }
The below manifest does NOT produce an error
class app_common { }
class app_common::subclass inherits app_common { }
class {'app_common': }
class {'app_common::subclass': }
----------------------------------------
Bug #5447: Fix duplicate definition error
https://projects.puppetlabs.com/issues/5447#change-68186
Author: Matt Robinson
Status: Re-opened
Priority: Normal
Assignee: James Turnbull
Category: parser
Target version:
Affected Puppet version: 2.7.6
Keywords: parameterized_classes
Branch:
Jos Boumans reported a manifest that results in the following error:
Duplicate definition: Class[Kbase] is already defined; cannot redefine at
/Users/matthewrobinson/work/puppet/4792:5 on node mattmac.puppetlabs.lan
He thought this was related to ticket 4792 and thus reopened it, but it appears
to be a separate issue. He posted his full set of manifests on that ticket,
but we reduced that to a much smaller manifest that reproduces the problem:
<pre>
class { "s_riak": }
class s_riak inherits kbase { }
class { "kbase": }
class kbase { }
</pre>
Note that no external node classification or anything fancy was involved, you
should be able to reproduce the error on this manifest by simply running it
through puppet apply.
--
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.