Issue #15899 has been updated by Luke Kanies.
The right way to fix this is to just to merge in the old ClassMethods and InstanceMethods code from 2.6.5 or so. ---------------------------------------- Bug #15899: Class methods should be added back to indirected classes https://projects.puppetlabs.com/issues/15899#change-68647 Author: Luke Kanies Status: Unreviewed Priority: Normal Assignee: eric sorenson Category: Target version: Affected Puppet version: Keywords: Branch: I've no idea how this happened, because I was sure Daniel had fixed this already. You used to be able to call 'find', 'search', and 'destroy' directly on any indirected class, and 'save' on any instance of an indirected class. This was removed for no real reason a long time ago, and it should be added back. This would allow actions like: `catalog = Puppet::Resource::Catalog.find "hostname" catalog.save` Otherwise you have to do: `catalog = Puppet::Resource::Catalog.indirection.find "hostname" catalog.class.indirection.save` Yuck. If this were fixed, then I'm pretty sure the related static compiler bug will just go away. -- 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.
