[Puppet - Bug #15074] (Unreviewed) parent providers do not work with pluginsync
2012-06-16 07:03:40 GMT
- Author: Dan Bode
- Status: Unreviewed
- Priority: Normal
- Target version:
- Affected Puppet version:
Assume a module with the following providers:
Where the first provider specifies a parent provider:Puppet::Type.type(:cs_order).provide(:crm, :parent => Puppet::Provider::Corosync) do
and the provider requires its parent:require 'puppet/provider/corosync'
This will fail with pluginsync:no such file to load -- puppet/provider/corosync
To get around this, manual adding the lib directory to the LOAD_PATH from the provider (which is kind of hacky):$LOAD_PATH.push(File.join(File.dirname(__FILE__), '..', '..', '..')) --
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To post to this group, send email to puppet-bugs <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-bugs+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.