Issue #7533 has been updated by Rémy Garrigue.

Lost an afternoon troubleshooting this one in a complex case. I ended up 
merging parent/child, duplicating code... the result is ugly. +1 for a 
fix/feature!
----------------------------------------
Bug #7533: subclass stage doesn't apply to baseclass 
https://projects.puppetlabs.com/issues/7533#change-64199

Author: Kevin Cai
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 2.7.x
Affected Puppet version: 
Keywords: 
Branch: 


when use class inheritance, given subclass's stage doesn't apply to base class.
Following is an example,
<pre>
class base {
   # definitions of base class
}

class child inherits base {
   # definitions of sub class
}
</pre>
Now have following nodes configure 
<pre>
node default {
    class {child: stage => pre }
}
</pre>

All resources defined in sub class will be associated to `Stage[pre]`, but 
resources in base class still run in `Stage[main]`.

Any resolution to this? 

As including sub class `Class[child]`, we can't include `Class[base]` again. 
Shouldn't the base class running on the same stage as subclass?


-- 
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.

Reply via email to