Issue #15193 has been updated by Jeff McCune.
# Merged into 3.x As: [3.0.0-rc5-22-g6070035](https://github.com/puppetlabs/puppet/commit/6070035) ---------------------------------------- Bug #15193: Static compiler does not work because of indirection interface changes https://projects.puppetlabs.com/issues/15193#change-70191 Author: Luke Kanies Status: Merged - Pending Release Priority: Normal Assignee: Category: compiler Target version: 2.7.20 Affected Puppet version: 2.7.17 Keywords: Branch: The following patch is necessary to use the static compiler: diff --git a/lib/puppet/indirector/catalog/static_compiler.rb b/lib/puppet/indirector/catalog/static_compiler.rb index 1d92121..f89f351 100644 --- a/lib/puppet/indirector/catalog/static_compiler.rb +++ b/lib/puppet/indirector/catalog/static_compiler.rb @@ -130,8 +130,9 @@ class Puppet::Resource::Catalog::StaticCompiler < Puppet::Indirector::Code Puppet.info "Content for '#{resource[:source]}' already exists" else Puppet.info "Storing content for source '#{resource[:source]}'" - content = Puppet::FileServing::Content.find(resource[:source]) - Puppet::FileBucket::File.new(content.content).save + content = Puppet::FileServing::Content.indirection.find(resource[:source]) + file = Puppet::FileBucket::File.new(content.content) + Puppet::FileBucket::File.indirection.save(file) end end end I know this is a known issue, since I've seen it discussed, but it's still not fixed, and I couldn't find a filed bug. I'm assuming there are also no tests for this code, else this clear failure would have been caught. -- 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.
