Issue #15193 has been updated by Jeff McCune.

Target version changed from 3.0.0 to 2.7.x

@eric

I'm re-targeting this at Puppet 2.7.x because this is a bug affecting the 
static compiler.  The static compiler was first released in Puppet 2.7.0 [1]

[1] 
<https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/_-E0XBZb8pM>
----------------------------------------
Bug #15193: Static compiler does not work because of indirection interface 
changes
https://projects.puppetlabs.com/issues/15193#change-69716

Author: Luke Kanies
Status: Accepted
Priority: Normal
Assignee: Jeff McCune
Category: compiler
Target version: 2.7.x
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.

Reply via email to